|
FireSync API
|
| kStatus kPacketSocket_Construct | ( | kPacketSocket * | sockt, |
| const kChar * | adapterName, | ||
| k16u * | protocols, | ||
| kSize | protocolCount, | ||
| kAlloc | allocator | ||
| ) |
Constructs a kPacketSocket object (non-promiscuous mode).
You can specify that only a specific ethernet type is received by using the protocol parameter. To receive all ethernet traffic set protocol to 0. For list of protocol types see http://standards-oui.ieee.org/ethertype/eth.txt
| sockt | Destination for the constructed object handle. |
| adapterName | Adapter name (e.g. "eth0", "Local Area Network"). |
| protocols | Protocols, e.g. 0x8892 for Profibus or 0x0800 for IP. |
| protocolCount | Number of protocols |
| allocator | Memory allocator (or kNULL for default). |