UDP-сокет с подключением Network Framework, но без записиIOS

Программируем под IOS
Ответить
Anonymous
 UDP-сокет с подключением Network Framework, но без записи

Сообщение Anonymous »


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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»