From 5792a98ec3a549d28037c65465db8c64e009823d Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 31 Oct 2007 13:20:48 +0000 Subject: * Added names to the SC_ and SI_ enums, now they can be used to properly indicate where such values are to be used (replaces usage of 'int') * removed MIN_/MAX_PORTAL_MEMO, set MAX_MEMOPOINTS from 10 to 3 * removed support for @go-ing to your memo points * simplified the overly verbose @memo command; now re-uses pc_memo() * cleaned up pc_memo(), now uses semi-correct packet replies * Minor code cleaning/formatting git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11625 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/socket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common/socket.c') diff --git a/src/common/socket.c b/src/common/socket.c index 7759a67ee..5fb9ead9e 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -171,7 +171,7 @@ int recv_to_fifo(int fd) if( len == SOCKET_ERROR ) {//An exception has occured if( s_errno != S_EWOULDBLOCK ) { - ShowDebug("recv_to_fifo: code %d, closing connection #%d\n", s_errno, fd); + //ShowDebug("recv_to_fifo: code %d, closing connection #%d\n", s_errno, fd); set_eof(fd); } return 0; @@ -201,9 +201,9 @@ int send_from_fifo(int fd) len = send(fd, (const char *) session[fd]->wdata, (int)session[fd]->wdata_size, 0); if( len == SOCKET_ERROR ) - { + {//An exception has occured if( s_errno != S_EWOULDBLOCK ) { - ShowDebug("send_from_fifo: error %d, ending connection #%d\n", s_errno, fd); + //ShowDebug("send_from_fifo: error %d, ending connection #%d\n", s_errno, fd); session[fd]->wdata_size = 0; //Clear the send queue as we can't send anymore. [Skotlex] set_eof(fd); } -- cgit v1.2.3-60-g2f50