![Texas TMS320C6000 Programmer'S Reference Manual Download Page 120](http://html.mh-extra.com/html/texas/tms320c6000/tms320c6000_programmers-reference-manual_1093844120.webp)
Telnet Server Service
6-7
Network Tools Library Services
Return Value
Returns a handle to the new telnet server instance, or NULL if the service could
not be created. This handle is used with TelnetClose() to shutdown the server
when its no longer needed.
Description
When a telnet session is established, a telnet child task is spawned which will
call the supplied callback function. This callback function should return a local
file descriptor of one end of a full duplex pipe. If the callback function returns
–1, the connection is aborted. When either the terminal or telnet connection
end of the pipe is broken, the other connection is closed and the session is en-
ded.
Destroy an Instance of the Telnet Server
TelnetClose
Syntax
void TelnetClose( HANDLE hTelnet );
Parameter(s)
hTelnet
Handle to telnet server instance obtained from TelnetOpen()
Return Value
nothing
Description
Destroys the instance of the telnet sever indicated by the supplied handle.
Once called, the server is shutdown and no more telnet sessions can be estab-
lished. Also, all spawned connections are immediately terminated.