diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-26 10:24:56 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-26 10:24:56 -0400 |
commit | 3d1c77dc57687b7ae995dc1aeaf65bdee96341c6 (patch) | |
tree | 3a48a66c2d3b26a28aec11031170b185a5fb24a7 /core/network.c | |
parent | 8c70b7c11d6d5acc08e234554f187b18876fd5d3 (diff) |
Added basic Local/LAN discovery.
Diffstat (limited to 'core/network.c')
-rw-r--r-- | core/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/network.c b/core/network.c index 5aa0d304..6a4d0bce 100644 --- a/core/network.c +++ b/core/network.c | |||
@@ -144,7 +144,7 @@ int init_networking(IP ip, uint16_t port) | |||
144 | /*Enable broadcast on socket*/ | 144 | /*Enable broadcast on socket*/ |
145 | int broadcast = 1; | 145 | int broadcast = 1; |
146 | setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char*)&broadcast, sizeof(broadcast)); | 146 | setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char*)&broadcast, sizeof(broadcast)); |
147 | 147 | ||
148 | /* Set socket nonblocking */ | 148 | /* Set socket nonblocking */ |
149 | #ifdef WIN32 | 149 | #ifdef WIN32 |
150 | /* I think this works for windows */ | 150 | /* I think this works for windows */ |