FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
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

Parameters
socktDestination for the constructed object handle.
adapterNameAdapter name (e.g. "eth0", "Local Area Network").
protocolsProtocols, e.g. 0x8892 for Profibus or 0x0800 for IP.
protocolCountNumber of protocols
allocatorMemory allocator (or kNULL for default).
Returns
Operation status.