Can't change the Client socket's port

35 views
Skip to first unread message

wangxue .m

unread,
Jul 28, 2017, 2:54:24 AM7/28/17
to CocoaAsyncSocket

Hi, Sometimes in server just certain specific port is allowed,

the CocoaAsyncSocket has no way to set clinet socket's port, 

it is randomly generated by system. and the property localPort is readonly.  

maybe have to  do bind local port before connect.

can someone give me a hand.

Thanks a lot.

Reply all
Reply to author
Forward
0 new messages