#include "../Include_i.h"
Macros | |
| #define | LOG_CLASS "Network" |
Functions | |
| STATUS | getLocalhostIpAddresses (PKvsIpAddress destIpList, PUINT32 pDestIpListLen, IceSetInterfaceFilterFunc filter, UINT64 customData) |
| STATUS | createSocket (KVS_IP_FAMILY_TYPE familyType, KVS_SOCKET_PROTOCOL protocol, UINT32 sendBufSize, PINT32 pOutSockFd) |
| STATUS | closeSocket (INT32 sockfd) |
| STATUS | socketBind (PKvsIpAddress pHostIpAddress, INT32 sockfd) |
| STATUS | socketConnect (PKvsIpAddress pPeerAddress, INT32 sockfd) |
| STATUS | socketWrite (INT32 sockfd, const void *pBuffer, SIZE_T length) |
| BOOL | isIpAddr (PCHAR hostname, UINT16 length) |
| STATUS | getIpAddrFromDnsHostname (PCHAR hostname, PCHAR address, UINT16 lengthSrc, UINT16 maxLenDst) |
| STATUS | getDualStackIpAddrFromDnsHostname (PCHAR hostname, PCHAR ipv4Address, PCHAR ipv6Address, UINT16 lengthSrc, UINT16 maxLenV4Dst, UINT16 maxLenV6Dst) |
| STATUS | getIpWithHostName (PCHAR hostname, PDualKvsIpAddresses destIps) |
| STATUS | getIpAddrStr (PKvsIpAddress pKvsIpAddress, PCHAR pBuffer, UINT32 bufferLen) |
| STATUS | getIpAddrPortStr (PKvsIpAddress pKvsIpAddress, PCHAR pBuffer, UINT32 bufferLen) |
| BOOL | isSameIpAddress (PKvsIpAddress pAddr1, PKvsIpAddress pAddr2, BOOL checkPort) |
| INT32 | getErrorCode (VOID) |
| PCHAR | getErrorString (INT32 error) |
| #define LOG_CLASS "Network" |
Kinesis Video Producer Host Info
| STATUS closeSocket | ( | INT32 | sockfd | ) |
| - | INT32 - IN - INT32 for the socketfd |


| STATUS createSocket | ( | KVS_IP_FAMILY_TYPE | familyType, |
| KVS_SOCKET_PROTOCOL | protocol, | ||
| UINT32 | sendBufSize, | ||
| PINT32 | pOutSockFd ) |
| - | KVS_IP_FAMILY_TYPE - IN - Family for the socket. Must be one of KVS_IP_FAMILY_TYPE |
| - | KVS_SOCKET_PROTOCOL - IN - either tcp or udp |
| - | UINT32 - IN - send buffer size in bytes |
| - | PINT32 - OUT - PINT32 for the socketfd |


| STATUS getDualStackIpAddrFromDnsHostname | ( | PCHAR | hostname, |
| PCHAR | ipv4Address, | ||
| PCHAR | ipv6Address, | ||
| UINT16 | lengthSrc, | ||
| UINT16 | maxLenV4Dst, | ||
| UINT16 | maxLenV6Dst ) |

| INT32 getErrorCode | ( | VOID | ) |

| PCHAR getErrorString | ( | INT32 | error | ) |
| - | INT32 - IN - error code |

| STATUS getIpAddrFromDnsHostname | ( | PCHAR | hostname, |
| PCHAR | address, | ||
| UINT16 | lengthSrc, | ||
| UINT16 | maxLenDst ) |

| STATUS getIpAddrPortStr | ( | PKvsIpAddress | pKvsIpAddress, |
| PCHAR | pBuffer, | ||
| UINT32 | bufferLen ) |


| STATUS getIpAddrStr | ( | PKvsIpAddress | pKvsIpAddress, |
| PCHAR | pBuffer, | ||
| UINT32 | bufferLen ) |

| STATUS getIpWithHostName | ( | PCHAR | hostname, |
| PDualKvsIpAddresses | destIps ) |
| - | PCHAR - IN - hostname to resolve |
| - | PKvsIpAddress - OUT - resolved IP address |


| STATUS getLocalhostIpAddresses | ( | PKvsIpAddress | destIpList, |
| PUINT32 | pDestIpListLen, | ||
| IceSetInterfaceFilterFunc | filter, | ||
| UINT64 | customData ) |
| - | PKvsIpAddress - IN/OUT - array for getLocalhostIpAddresses to store any local ips it found. The IP address and port will be in network byte order. |
| - | UINT32 - IN/OUT - length of the array, upon return it will be updated to the actual number of ips in the array |
| - | IceSetInterfaceFilterFunc - IN - set to custom interface filter callback |
| - | UINT64 - IN - Set to custom data that can be used in the callback later |

| BOOL isIpAddr | ( | PCHAR | hostname, |
| UINT16 | length ) |
| - | PCHAR - IN - IP address string to verify if it is IPv4 or IPv6 format |
| - | UINT16 - IN - Length of string |
| - | BOOL - OUT - Evaluates to TRUE if the provided string is IPv4/IPv6. False otherwise |

| BOOL isSameIpAddress | ( | PKvsIpAddress | pAddr1, |
| PKvsIpAddress | pAddr2, | ||
| BOOL | checkPort ) |

| STATUS socketBind | ( | PKvsIpAddress | pHostIpAddress, |
| INT32 | sockfd ) |
| - | PKvsIpAddress - IN - address for the socket to bind. PKvsIpAddress->port will be changed to the actual port number |
| - | INT32 - IN - valid socket fd |


| STATUS socketConnect | ( | PKvsIpAddress | pPeerAddress, |
| INT32 | sockfd ) |
| - | PKvsIpAddress - IN - address for the socket to connect. |
| - | INT32 - IN - valid socket fd |


| STATUS socketWrite | ( | INT32 | sockfd, |
| const void * | pBuffer, | ||
| SIZE_T | length ) |
| - | INT32 - Socket to write to |
| - | const void * - buffer of data to write |
| - | SIZE_T - length of buffer |

