Free (GPLv2) TCP/IP stack developed by TASS Belgium
Fork of PicoTCP by
Revision 14:fe225a6f92c0, committed 2013-06-06
- Comitter:
- tass
- Date:
- Thu Jun 06 09:27:28 2013 +0000
- Parent:
- 13:c6662adea07d
- Child:
- 15:129f20ca4d7d
- Child:
- 16:6893f625e337
- Commit message:
- Updated the bsd layer, still bugs in it...
Changed in this revision
Socket/pico_bsd_layer.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket/pico_bsd_layer.cpp Thu Jun 06 09:14:40 2013 +0000 +++ b/Socket/pico_bsd_layer.cpp Thu Jun 06 09:27:28 2013 +0000 @@ -136,17 +136,17 @@ } else { - //printf("Unexpected event\n"); + printf("Unexpected event\n"); // give semaphore back when -1 occurs or close requested if( (ev & PICO_SOCK_EV_ERR) || (ev & PICO_SOCK_EV_CLOSE) || (ev & PICO_SOCK_EV_FIN) ) { - //printf("Exception\n"); + printf("Exception\n"); _sock->state = SOCK_CLOSED; - if(_sock->sock) + if(_sock->state != SOCK_CLOSED) { pico_socket_close(_sock->sock); - _sock->sock = NULL; + //_sock->sock = NULL; } _sock->mutex->unlock(); globalLock.lock();