Home |
Function cb_telnet_init_fnc |
Function cb_telnet_init_fncApplication callback function to initialize a telnet session. void cb_telnet_init_fnc(struct _telnet_context * pcontext); ParameterspcontextPointer to the context structure of the current session. see function cb_telnet_inchar_fnc for details. This callback is called by the Telnet Server when a Telnet session is established. Example:void cb_telnet_init_fnc(struct _telnet_context * pcontext) { const char Hello[] = "Welcome to the On Time Telnet Server Demo\r\n\n" "Cmd: "; send(pcontext->tns_socket, Hello, sizeof(Hello), 0); pcontext->tns_bp = 0; }
|