fixed boardcast

This commit is contained in:
ChillerDragon 2017-10-24 13:40:35 +02:00
parent 19a8054df6
commit 86f4deef8c

View file

@ -1363,7 +1363,7 @@ NETSOCKET net_udp_create(NETADDR bindaddr)
sock.type |= NETTYPE_IPV4;
sock.ipv4sock = socket;
/* set boardcast */
/* set broadcast */
setsockopt(socket, SOL_SOCKET, SO_BROADCAST, (const char*)&broadcast, sizeof(broadcast));
/* set receive buffer size */
@ -1411,7 +1411,7 @@ NETSOCKET net_udp_create(NETADDR bindaddr)
sock.type |= NETTYPE_IPV6;
sock.ipv6sock = socket;
/* set boardcast */
/* set broadcast */
setsockopt(socket, SOL_SOCKET, SO_BROADCAST, (const char*)&broadcast, sizeof(broadcast));
/* set receive buffer size */