|
|
@ -44,7 +44,7 @@ and dest is a pointer to the sockaddr struct that will be filled in.
|
|
|
|
The function returns with -202 if the network parameter contained neither '4'
|
|
|
|
The function returns with -202 if the network parameter contained neither '4'
|
|
|
|
nor '6'. */
|
|
|
|
nor '6'. */
|
|
|
|
|
|
|
|
|
|
|
|
int create_addr(int network, char* address, int port,struct sockaddr* dest);
|
|
|
|
int create_addr(int network, const char* address, int port,struct sockaddr* dest);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -54,7 +54,7 @@ same as above.
|
|
|
|
|
|
|
|
|
|
|
|
It prints the error returned by 'bind' if something went wrong, and returns ( -1 * errno ).*/
|
|
|
|
It prints the error returned by 'bind' if something went wrong, and returns ( -1 * errno ).*/
|
|
|
|
|
|
|
|
|
|
|
|
SOCKET create_local (int network, char transport, char* address, int port,struct sockaddr* addr_struct);
|
|
|
|
SOCKET create_local (int network, char transport, const char* address, int port,struct sockaddr* addr_struct);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* This function utilizes the same functions as 'create_local' but _connects_ to the
|
|
|
|
/* This function utilizes the same functions as 'create_local' but _connects_ to the
|
|
|
@ -63,7 +63,7 @@ as above. This function needs an empty 'sockaddr *' structure passed to it, whic
|
|
|
|
|
|
|
|
|
|
|
|
If something goes wrong, this function returns with ( -1 * errno ). */
|
|
|
|
If something goes wrong, this function returns with ( -1 * errno ). */
|
|
|
|
|
|
|
|
|
|
|
|
SOCKET create_remote (int network,char transport,char* address,int port,struct sockaddr* remote_addr_struct);
|
|
|
|
SOCKET create_remote (int network,char transport, const char* address,int port,struct sockaddr* remote_addr_struct);
|
|
|
|
|
|
|
|
|
|
|
|
/* check_ip_ver - This function checks if the given string is an IPv4 address (returns 4),
|
|
|
|
/* check_ip_ver - This function checks if the given string is an IPv4 address (returns 4),
|
|
|
|
IPv6 address (returns 6) or neither (returns -1). */
|
|
|
|
IPv6 address (returns 6) or neither (returns -1). */
|
|
|
|