8 #ifndef K_PACKET_SOCKET_H
9 #define K_PACKET_SOCKET_H
140 #include <kFireSync/Utils/kPacketSocket.x.h>
kStatus kPacketSocket_ConstructEx(kPacketSocket *sockt, const kChar *adapterName, k16u *protocols, kSize protocolCount, kBool promiscuousMode, kAlloc allocator)
Constructs a kPacketSocket object with additional options.
kStatus kPacketSocket_Construct(kPacketSocket *sockt, const kChar *adapterName, k16u *protocols, kSize protocolCount, kAlloc allocator)
Constructs a kPacketSocket object (non-promiscuous mode).
kStatus kPacketSocket_ConstructFromIpEx(kPacketSocket *sockt, kIpAddress ipAddress, k16u *protocols, kSize protocolCount, kBool promiscuousMode, kAlloc allocator)
Constructs a kPacketSocket object from an Ip address with additional options.
kStatus kPacketSocket_ConstructFromIp(kPacketSocket *sockt, kIpAddress ipAddress, k16u *protocols, kSize protocolCount, kAlloc allocator)
Constructs a kPacketSocket object from an IP address (non-promiscuous mode).
kStatus kPacketSocket_AdapterInfo(kIpAddress ipAddress, kChar *adapterName, kSize capacity, kIpAddress *gateway, k32u *prefixlength, kMacAddress *macAddress)
Gives extended adapter information for a given Ip address.
Essential API declarations for the kFireSync library.
kStatus kPacketSocket_Receive(kPacketSocket sockt, void *buffer, kSize size, kSize *bytesRead, k64u timeout)
Reads up to the specified number of bytes from the socket.
kStatus kPacketSocket_Send(kPacketSocket sockt, const void *buffer, k32s size)
Sends the specified number of bytes.
Represents layer 2 functionality (sending and receiving of raw ethernet frames).
kStatus kPacketSocket_PrintPacket(const kByte *buffer, kSize size, kBool includeData, kString output)
Fills a string with the source and destination MAC address and hex presentation of the data...