X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/0a9920e2dbc0891b418eed3366b59bb65c21c88c..1d27afe6fc7ec7ba96b1ea2b74e3500ea509fa76:/peer.c diff --git a/peer.c b/peer.c index f60f887f..541501cb 100644 --- a/peer.c +++ b/peer.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: peer.c,v 1.5 2001/03/03 11:15:19 mdw Exp $ + * $Id: peer.c,v 1.6 2001/06/19 22:07:59 mdw Exp $ * * Communication with the peer * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: peer.c,v $ + * Revision 1.6 2001/06/19 22:07:59 mdw + * Use magic number for packet size. + * * Revision 1.5 2001/03/03 11:15:19 mdw * Set the socket send and receive buffers to maximum. At least this way, * we won't drop large packets on the floor. If the administrator wants to @@ -280,7 +283,7 @@ void p_init(unsigned port) { int fd; struct sockaddr_in sin; - int len = 65536; + int len = PKBUFSZ; /* --- Note on socket buffer sizes --- * *