summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorwizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 06:14:25 +0000
committerwizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 06:14:25 +0000
commit26491602e8be85d7180d02c7f094a8ac905a8238 (patch)
treebaa4be555378e5c18a2ec83792f338b508fdba2b /src/common/socket.c
parent88edb9b8ba85d40dc47fd259c49e4638a3175348 (diff)
downloadhercules-26491602e8be85d7180d02c7f094a8ac905a8238.tar.gz
hercules-26491602e8be85d7180d02c7f094a8ac905a8238.tar.bz2
hercules-26491602e8be85d7180d02c7f094a8ac905a8238.tar.xz
hercules-26491602e8be85d7180d02c7f094a8ac905a8238.zip
Display IP when wdata is expanded [Wizputer]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@303 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index cdf05e52a..4afcf50d4 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -417,8 +417,9 @@ int WFIFOSET(int fd,int len)
return 0;
#endif /* NSOCKET */
if( s->wdata_size+len+16384 > s->max_wdata ){
+ unsigned char *sin_addr = (unsigned char *)&s->client_addr.sin_addr;
realloc_fifo(fd,s->max_rdata, s->max_wdata <<1 );
- printf("socket: %d wdata expanded to %d bytes.\n",fd, s->max_wdata);
+ printf("socket: %d (%d.%d.%d.%d) wdata expanded to %d bytes.\n",fd, sin_addr[0], sin_addr[1], sin_addr[2], sin_addr[3], s->max_wdata);
}
s->wdata_size=(s->wdata_size+(len)+2048 < s->max_wdata) ?
s->wdata_size+len : (printf("socket: %d wdata lost !!\n",fd),s->wdata_size);