/* read, close */
#include <unistd.h>
+/* defines ... */
+#define MAX_SIZE 1400
+
int main(int argc, char *argv[]) {
int listen_fd, send_fd;
struct sockaddr_in local_addr, remote_addr;
/* send stuff .... */
read_bytes=1;
while(read_bytes>0) {
- unsigned char buf[1000];
+ unsigned char buf[MAX_SIZE];
read_bytes=read(0,buf,sizeof(buf));
send_bytes=send(send_fd,buf,read_bytes,0);
}