Ethernet interface for W5500 with bug fixed in socket::close()
Fork of EthernetInterfaceW5500 by
Revision 13:6f469f76a76a, committed 2014-07-21
- Comitter:
- Bongjun
- Date:
- Mon Jul 21 05:29:03 2014 +0000
- Parent:
- 12:d130abe9d4a8
- Child:
- 14:a089e591e530
- Commit message:
- printf -> error fucntion in accept() function in TCPSocetServer.cpp
Changed in this revision
Socket/TCPSocketServer.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket/TCPSocketServer.cpp Mon Jul 21 05:12:11 2014 +0000 +++ b/Socket/TCPSocketServer.cpp Mon Jul 21 05:29:03 2014 +0000 @@ -81,11 +81,11 @@ // and then, for the next connection, server socket should be assigned new one. _sock_fd = -1; // want to assign new available _sock_fd. if(bind(listen_port) < 0) { - printf("No more server socket"); + error("No more socket for listening"); } else { //return -1; if(listen(1) < 0) { - printf("No more server socket"); + error("No more socket for listening"); } } return 0;