mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
update SocketUdpConnection::connect
This commit is contained in:
parent
bd1ff73e30
commit
0c916b9991
2 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
for i = 1, 3 do
|
||||
print(string.format("iteration %s", i + 1))
|
||||
print(string.format("iteration %s", i))
|
||||
local complete = false
|
||||
|
||||
local server = network.udp_open(8645, function (address, port, data, srv)
|
||||
|
|
|
|||
|
|
@ -657,6 +657,7 @@ public:
|
|||
|
||||
hints.ai_family = AF_INET;
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
serverAddr.sin_addr.s_addr = INADDR_ANY;
|
||||
|
||||
addrinfo* addrinfo = nullptr;
|
||||
if (int res = getaddrinfo(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue