You can subscribe to this list here.
2002 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Pete A. <SC...@ho...> - 2002-05-19 16:11:22
|
Hi Harald and Michael, I've encountered a small problem; when a NutTcpConnect fails it still returns 0. It allways returns 0, that is not good. So I changed the code in tcpsm.c. Now when a connection attempt is not successful it returns -1. Regards, Peter See code below: int NutTcpStateActiveOpenEvent(TCPSOCKET *sock) { /* * Despite RFC793 we do not allow a passive * open to become active. */ if(sock->so_state == TCPS_LISTEN) return (sock->so_last_error = EOPNOTSUPP); if(sock->so_state != TCPS_CLOSED) return (sock->so_last_error = EISCONN); /* * Switch state to SYN_SENT. This will * transmit a SYN packet. */ NutTcpStateChange(sock, TCPS_SYN_SENT); /* * Block application. */ NutEventWait(&sock->so_ac_tq, 0); // *************************** return additional info ****************************************** // NutKPrintFormat("socket state= %d \n", sock->so_state); if(sock->so_state != TCPS_ESTABLISHED) return -1; // **************************************************************************** ********** return 0; } |
From: Marc R. W. <mw...@gm...> - 2002-01-26 13:33:48
|
I just found the Ethernut mailing list. I want to say hello to everybody using this great little piece of hard- and software. Here you soon :) Marc Wetzel |