diff options
author | Coren[m] <Break@Ocean> | 2013-09-09 13:56:03 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-09 13:56:03 +0200 |
commit | a128e3ff8f09250757ed4ed73fcc088cb5fd15ee (patch) | |
tree | cfbf03fa229ad21445a050b3041d208d5cb30196 /toxcore/LAN_discovery.c | |
parent | 0d41d7f9c05a753c54cc7a3f2535d20ae3f5aaf4 (diff) |
network.h:
- global: added sock_t
- Networking_Core: added family (currently always AF_INET) and port
- sendpacket(): changed signature to require (Networking_Core *) instead of sock_t
*.c:
- sendpacket()-calls: replaced *->net->sock with *->net
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r-- | toxcore/LAN_discovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index 1980cd93..fe9f748b 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -136,7 +136,7 @@ int send_LANdiscovery(uint16_t port, Net_Crypto *c) | |||
136 | send_broadcasts(c->lossless_udp->net, port, data, 1 + crypto_box_PUBLICKEYBYTES); | 136 | send_broadcasts(c->lossless_udp->net, port, data, 1 + crypto_box_PUBLICKEYBYTES); |
137 | #endif | 137 | #endif |
138 | IP_Port ip_port = {{broadcast_ip(), port, 0}}; | 138 | IP_Port ip_port = {{broadcast_ip(), port, 0}}; |
139 | return sendpacket(c->lossless_udp->net->sock, ip_port, data, 1 + crypto_box_PUBLICKEYBYTES); | 139 | return sendpacket(c->lossless_udp->net, ip_port, data, 1 + crypto_box_PUBLICKEYBYTES); |
140 | } | 140 | } |
141 | 141 | ||
142 | 142 | ||