4 #ifndef __KINESIS_VIDEO_WEBRTC_CLIENT_NETWORK__
5 #define __KINESIS_VIDEO_WEBRTC_CLIENT_NETWORK__
13 #define MAX_LOCAL_NETWORK_INTERFACE_COUNT 128
18 #define KVS_IP_ADDRESS_STRING_BUFFER_LEN 46
21 #define KVS_MAX_IPV4_ADDRESS_STRING_LEN 15
23 #define KVS_GET_IP_ADDRESS_PORT(a) ((UINT16) getInt16((a)->port))
25 #define IPV4_TEMPLATE "%d.%d.%d.%d"
26 #define IPV6_TEMPLATE "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x"
29 #define NO_SIGNAL_SOCK_OPT SO_NOSIGPIPE
30 #define NO_SIGNAL_SEND 0
32 #define NO_SIGNAL_SEND MSG_NOSIGNAL
37 #define EAI_SYSTEM -11
43 #define KVS_SOCKET_IN_PROGRESS EWOULDBLOCK
45 #define KVS_SOCKET_IN_PROGRESS EINPROGRESS
KVS_IP_FAMILY_TYPE
Definition: Include_i.h:94
STATUS getLocalhostIpAddresses(PKvsIpAddress, PUINT32, IceSetInterfaceFilterFunc, UINT64)
Definition: Network.c:7
STATUS getIpWithHostName(PCHAR, PKvsIpAddress)
Definition: Network.c:396
STATUS socketBind(PKvsIpAddress, INT32)
Definition: Network.c:238
INT32 getErrorCode(VOID)
Definition: Network.c:529
STATUS closeSocket(INT32)
Definition: Network.c:223
STATUS createSocketPair(INT32(*)[2])
Definition: Network.c:155
KVS_SOCKET_PROTOCOL
Definition: Network.h:48
@ KVS_SOCKET_PROTOCOL_TCP
Definition: Network.h:50
@ KVS_SOCKET_PROTOCOL_NONE
Definition: Network.h:49
@ KVS_SOCKET_PROTOCOL_UDP
Definition: Network.h:51
STATUS getIpAddrStr(PKvsIpAddress, PCHAR, UINT32)
Definition: Network.c:461
STATUS createSocket(KVS_IP_FAMILY_TYPE, KVS_SOCKET_PROTOCOL, UINT32, PINT32)
Definition: Network.c:168
STATUS socketConnect(PKvsIpAddress, INT32)
Definition: Network.c:289
STATUS socketWrite(INT32, const void *, SIZE_T)
Definition: Network.c:324
PCHAR getErrorString(INT32)
Definition: Network.c:564
BOOL isIpAddr(PCHAR, UINT16)
Definition: Network.c:338
BOOL isSameIpAddress(PKvsIpAddress, PKvsIpAddress, BOOL)
Definition: Network.c:488
BOOL(* IceSetInterfaceFilterFunc)(UINT64, PCHAR)
IceSetInterfaceFilterFunc is fired when a callback function to filter network interfaces is assigned....
Definition: Include.h:1073
Definition: Include_i.h:99