Updated definition for 'create_remote' function

master
Aadhavan Srinivasan 2 years ago
parent a321f677a4
commit dbc838aa50

@ -44,11 +44,11 @@ int create_local (int network, char transport, char* address, int port,struct so
/* 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
requested address. It is used for remote sockets (client sockets). The paramters are same requested address. It is used for remote sockets (client sockets). The paramters are same
as above. as above. This function needs an empty 'sockaddr *' structure passed to it, which it will fill.
It prints the error returned by 'connect' if something went wrong, and exits with error code '-3'.*/ It prints the error returned by 'connect' if something went wrong, and exits with error code '-3'.*/
int create_remote (int network,char transport,char* address,int port); int create_remote (int network,char transport,char* address,int port,struct sockaddr* remote_addr_struct);
#endif #endif

Loading…
Cancel
Save