chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59d670e
)
Use magic number for packet size.
author
mdw
<mdw>
Tue, 19 Jun 2001 22:08:11 +0000
(22:08 +0000)
committer
mdw
<mdw>
Tue, 19 Jun 2001 22:08:11 +0000
(22:08 +0000)
peer.c
patch
|
blob
|
blame
|
history
servutil.c
patch
|
blob
|
blame
|
history
diff --git
a/peer.c
b/peer.c
index f60f887fc6e247a5778a3efa4e81e30360b25b27..541501cb763e5a64f8e204b6e76d39a3b01d3e4c 100644
(file)
--- a/
peer.c
+++ b/
peer.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: peer.c,v 1.
5 2001/03/03 11:15:1
9 mdw Exp $
+ * $Id: peer.c,v 1.
6 2001/06/19 22:07:5
9 mdw Exp $
*
* Communication with the peer
*
*
* Communication with the peer
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: peer.c,v $
/*----- 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
* 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 fd;
struct sockaddr_in sin;
- int len =
65536
;
+ int len =
PKBUFSZ
;
/* --- Note on socket buffer sizes --- *
*
/* --- Note on socket buffer sizes --- *
*
diff --git
a/servutil.c
b/servutil.c
index 2c5f3d8356dc7bebcf858a6be00b550a79338a40..dac92b7bbfcdfa79bc953ca7eba04c3f54ff6521 100644
(file)
--- a/
servutil.c
+++ b/
servutil.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: servutil.c,v 1.
2 2001/02/16 21:41:06
mdw Exp $
+ * $Id: servutil.c,v 1.
3 2001/06/19 22:08:11
mdw Exp $
*
* Various handy server-only utilities
*
*
* Various handy server-only utilities
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: servutil.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: servutil.c,v $
+ * Revision 1.3 2001/06/19 22:08:11 mdw
+ * Use magic number for packet size.
+ *
* Revision 1.2 2001/02/16 21:41:06 mdw
* Use new spare buffer for building MP textual representations. Add a
* function for making human-readable time strings.
* Revision 1.2 2001/02/16 21:41:06 mdw
* Use new spare buffer for building MP textual representations. Add a
* function for making human-readable time strings.
@@
-42,6
+45,10
@@
#include "tripe.h"
#include "tripe.h"
+/*----- Global variables --------------------------------------------------*/
+
+octet buf_i[PKBUFSZ], buf_o[PKBUFSZ], buf_t[PKBUFSZ];
+
/*----- Main code ---------------------------------------------------------*/
/* --- @mpstr@ --- *
/*----- Main code ---------------------------------------------------------*/
/* --- @mpstr@ --- *