10typedef enum lhnetaddresstype_e
19typedef struct lhnetaddress_s
23 unsigned char storage[256];
43typedef struct lhnetsocket_s
int LHNETADDRESS_ToString(const lhnetaddress_t *address, char *string, int stringbuffersize, int includeport)
Returns the number of bytes written to *string excluding the \0 terminator.
void LHNET_CloseSocket(lhnetsocket_t *lhnetsocket)
void LHNET_Shutdown(void)
int LHNET_DefaultDSCP(int dscp)
lhnetsocket_t * LHNET_OpenSocket_Connectionless(lhnetaddress_t *address)
int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentlength, const lhnetaddress_t *address)
lhnetaddress_t * LHNET_AddressFromSocket(lhnetsocket_t *sock)
lhnetsocket_t lhnet_socketlist
void LHNET_SleepUntilPacket_Microseconds(int microseconds)
const char * LHNETADDRESS_GetInterfaceName(const lhnetaddress_t *address, char *ifname, size_t ifnamelength)
static lhnetaddresstype_t LHNETADDRESS_GetAddressType(const lhnetaddress_t *address)
int LHNETADDRESS_GetPort(const lhnetaddress_t *address)
int LHNETADDRESS_SetPort(lhnetaddress_t *address, int port)
int LHNETADDRESS_Compare(const lhnetaddress_t *address1, const lhnetaddress_t *address2)
int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, lhnetaddress_t *address)
int LHNETADDRESS_FromString(lhnetaddress_t *address, const char *string, int defaultport)
int LHNETADDRESS_FromPort(lhnetaddress_t *address, lhnetaddresstype_t addresstype, int port)
lhnetaddresstype_t addresstype