1 | /* |
1 | /* |
2 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
3 | |
3 | |
|
|
4 | Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team |
4 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
5 | |
6 | |
6 | This program is free software; you can redistribute it and/or modify |
7 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by |
8 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or |
9 | the Free Software Foundation; either version 2 of the License, or |
… | |
… | |
386 | int amt = 0; |
387 | int amt = 0; |
387 | |
388 | |
388 | if (destroyed () || !buf) |
389 | if (destroyed () || !buf) |
389 | return; |
390 | return; |
390 | |
391 | |
391 | if ((len + outputbuffer.len) > SOCKETBUFSIZE) |
392 | if (len + outputbuffer.len > SOCKETBUFSIZE) |
392 | { |
393 | { |
393 | LOG (llevDebug, "socket on fd %d has overrun internal buffer - marking as dead\n", fd); |
394 | LOG (llevDebug, "socket on fd %d has overrun internal buffer - marking as dead\n", fd); |
394 | destroy (); |
395 | destroy (); |
395 | return; |
396 | return; |
396 | } |
397 | } |