UDP-сокет с подключением Network Framework, но без записи ⇐ IOS
-
Anonymous
UDP-сокет с подключением Network Framework, но без записи
I am using nw_connection_start and nw_connection_send following https://developer.apple.com/documentati ... _framework. I have ended up with the code that can be found at https://github.com/stoyicker/ios-udp-te ... ntroller.m.
I have a test UDP server and, whenever I use the code above to send a byte to it, the server seems to detect that there's been some sort of connection/contact, but it doesn't actually receive the data (as the server prints having received 0 whereas the client is set up to send 1). The test server can be found in another branch in the same repository, https://github.com/stoyicker/ios-udp-te ... /udpserver.
I need help figuring out why the write/send is not succeeding. Changing stack to Swift is not an option due to non-negotiable constraints outside of my control.
Источник: https://stackoverflow.com/questions/780 ... ot-writing
I am using nw_connection_start and nw_connection_send following https://developer.apple.com/documentati ... _framework. I have ended up with the code that can be found at https://github.com/stoyicker/ios-udp-te ... ntroller.m.
I have a test UDP server and, whenever I use the code above to send a byte to it, the server seems to detect that there's been some sort of connection/contact, but it doesn't actually receive the data (as the server prints having received 0 whereas the client is set up to send 1). The test server can be found in another branch in the same repository, https://github.com/stoyicker/ios-udp-te ... /udpserver.
I need help figuring out why the write/send is not succeeding. Changing stack to Swift is not an option due to non-negotiable constraints outside of my control.
Источник: https://stackoverflow.com/questions/780 ... ot-writing
Мобильная версия