diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-12 07:55:48 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-12 09:00:24 +0100 |
commit | a2a1ef7f64c75f7fd7500c6d534e5690e7fb286f (patch) | |
tree | 11fa0fff3eb5bc49311fd525895fb3d17ced0fcc | |
parent | 94b29432f28503be80a69fca09e54be7401a69be (diff) | |
download | econ-a2a1ef7f64c75f7fd7500c6d534e5690e7fb286f.tar.gz econ-a2a1ef7f64c75f7fd7500c6d534e5690e7fb286f.tar.bz2 econ-a2a1ef7f64c75f7fd7500c6d534e5690e7fb286f.zip |
econserv: Socket for tcp_fd has to be sock_stream
-rw-r--r-- | econserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |