From e51ed22f024a7dee2c5dc3175811da04a79510ad Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 9 Mar 2013 07:07:07 +0100 Subject: econproxy: remove old code --- econproxy.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/econproxy.c b/econproxy.c index ead6687..5a77905 100644 --- a/econproxy.c +++ b/econproxy.c @@ -93,18 +93,14 @@ ep_get_clientinfo(struct ep *ep) char buf[BUFSIZ], buf2[BUFSIZ]; size_t len; - //int fd = connect_to_host(SOCK_DGRAM, "ep", "3620"); init_iov(ep); init_header(&ep->ehdr, E_CMD_IPSEARCH); - //init_header(&ep->ehdr, E_CMD_EASYSEARCH); set_ip(ep->ehdr.IPaddress, sock_get_ipv4_addr(ep->ec_fd)); ep->ehdr.datasize = 0; writev(ep->ec_fd, ep->iov, 1); - //writev(fd, ep->iov, 1); len = read(ep->ec_fd, buf, BUFSIZ); - //len = read(fd, buf, BUFSIZ); struct econ_header *hdr = (void *) buf; printf("cmd: %d, len: %zd\n", hdr->commandID, len); @@ -125,13 +121,10 @@ ep_get_clientinfo(struct ep *ep) #if 1 len = read(ep->ec_fd, buf2, BUFSIZ); - //len = read(fd, buf2, BUFSIZ); hdr = (void *) buf2; printf("cmd: %d, len: %zd\n", hdr->commandID, len); #endif - //close(fd); - return 0; } -- cgit