summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-09 07:07:07 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-09 07:07:07 +0100
commite51ed22f024a7dee2c5dc3175811da04a79510ad (patch)
tree729e5e934077465d5265d4f1fe1cc8ccf26707b9
parentd93a293d70f07a172508659a3a6437e0cf17c19f (diff)
downloadecon-e51ed22f024a7dee2c5dc3175811da04a79510ad.tar.gz
econ-e51ed22f024a7dee2c5dc3175811da04a79510ad.tar.bz2
econ-e51ed22f024a7dee2c5dc3175811da04a79510ad.zip
econproxy: remove old code
-rw-r--r--econproxy.c7
1 files changed, 0 insertions, 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;
}