Home |
Function net_send |
Function net_sendSends data. SOCKET net_send(SOCKET socket, const char * buffer, int size, int Seconds); ParameterssocketSocket returned by net_socket, socket, net_accept, or accept. bufferPointer to the data to ne sent. sizeNumber of bytes to send. SecondsTimeout in seconds. This parameter is ignored if zero, which means the operation waits indefinitely for sockets in blocking mode or returns immediately for sockets in non-blocking mode. Value RTIP_INF will wait indefinitely. return valueThe number of bytes queued for sending or SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error. For secure sockets, the data to be sent is encrypted. Then, function send is called internally.
|