diff options
author | wizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-22 06:14:25 +0000 |
---|---|---|
committer | wizputer <wizputer@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-22 06:14:25 +0000 |
commit | 26491602e8be85d7180d02c7f094a8ac905a8238 (patch) | |
tree | baa4be555378e5c18a2ec83792f338b508fdba2b /src | |
parent | 88edb9b8ba85d40dc47fd259c49e4638a3175348 (diff) | |
download | hercules-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')
-rw-r--r-- | src/common/socket.c | 3 |
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); |