projects
/
my-code
/
ivac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
47bc309
)
MAX_SIZE 1400
author
hackbard
<hackbard>
Fri, 10 Jan 2003 15:28:48 +0000
(15:28 +0000)
committer
hackbard
<hackbard>
Fri, 10 Jan 2003 15:28:48 +0000
(15:28 +0000)
receive.c
patch
|
blob
|
history
diff --git
a/receive.c
b/receive.c
index
105a81c
..
9bd11f8
100644
(file)
--- a/
receive.c
+++ b/
receive.c
@@
-26,6
+26,9
@@
/* read, close */
#include <unistd.h>
+/* defines ... */
+#define MAX_SIZE 1400
+
int main(int argc, char *argv[]) {
int receive_fd;
struct sockaddr_in target_addr;
@@
-54,7
+57,7
@@
int main(int argc, char *argv[]) {
receive_bytes=1;
while(receive_bytes>0) {
- unsigned char buf[
1000
];
+ unsigned char buf[
MAX_SIZE
];
receive_bytes=recv(receive_fd,buf,sizeof(buf),0);
write_bytes=write(1,buf,receive_bytes);
}