Home |
Function tftpcli_connect |
Function tftpcli_connectFunction tftpcli_connect connects to a remote TFTP server. SOCKET tftpcli_connect(DWORD ip_address); Parametersip_addressPointer to the IP address of the server to connect to in network byte order. return valueReturns the connection's socket number if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. This function initializes a TFTP session by creating a UDP socket, binding the socket and setting up the remote IP address for subsequent sends and receives. This routine is non-reentrant and cannot be called if the TFTP Server or any other TFTP client routine is running.
|