Home |
Function xn_telnet_sendstring |
Function xn_telnet_sendstringThis function sends a string of characters to the server. int xn_telnet_sendstring(tnc_context * context, const char * Cmd, int len); ParameterscontextPointer to the Telnet session context structure. The context must have been established by xn_telnet_connect. CmdPointer to the string to send to the server. lenNumber of bytes to send. If the parameter is zero, the function will use strlen() to determine the length automatically. return valueReturns 0 if successful, otherwise SOCKET_ERROR. For interactive Telnet clients, it is recommended to execute xn_telnet_getstring and xn_telnet_sendstring in separate threads.
|