summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-12 07:55:48 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-12 09:00:24 +0100
commita2a1ef7f64c75f7fd7500c6d534e5690e7fb286f (patch)
tree11fa0fff3eb5bc49311fd525895fb3d17ced0fcc
parent94b29432f28503be80a69fca09e54be7401a69be (diff)
downloadecon-a2a1ef7f64c75f7fd7500c6d534e5690e7fb286f.tar.gz
econ-a2a1ef7f64c75f7fd7500c6d534e5690e7fb286f.tar.bz2
econ-a2a1ef7f64c75f7fd7500c6d534e5690e7fb286f.zip
econserv: Socket for tcp_fd has to be sock_stream
-rw-r--r--econserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/econserv.c b/econserv.c
index cbe07ce..109d294 100644
--- a/econserv.c
+++ b/econserv.c
@@ -321,7 +321,7 @@ int main(int argc, char *argv[])
ecs.udp_fd = bind_socket(SOCK_DGRAM, host, control_port);
assert(ecs.udp_fd >= 0);
- ecs.tcp_fd = bind_socket(SOCK_DGRAM, host, control_port);
+ ecs.tcp_fd = bind_socket(SOCK_STREAM, host, control_port);
listen(ecs.tcp_fd, 1);
set_ip(ecs.epkt.rec.IPaddress, sock_get_ipv4_addr(ecs.fd));