[ECOS] FIN is not sending on socket close()

srinivas naga vutukuri srinivas.vutukuri@gmail.com
Mon Jun 25 13:49:00 GMT 2007


Dear All,

          Am just taken an example from
http://libcli.sourceforge.net
and integrated into my eCos application.

Am creating a thread, under that am calling TELNET_start() (can see in
clitest.c).
which is accepting the telnet sessions.
and after that its calling the cli_loop(). But when i issue quit,
which exits the while loop
in the cli_loop() function and tries to close the sockfd. But this is
not sending the FIN my
embedded system to my PC telnet client.  I also set the SO_LINGER socket option.


Could you please help me out.

My source code is attached here with the libcli.c for your reference.

best regards,
srinivas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clitest.c
Type: application/octet-stream
Size: 3925 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20070625/471e8061/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcli.c
Type: application/octet-stream
Size: 41683 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20070625/471e8061/attachment-0001.obj>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list