-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: [acceptOnPort: error:] is not accepting #330
Comments
Having same problem on iOS and tvOS using both AsyncSocket and GCDAsyncSocket, connections were'nt accepted at all. Did some comparison with Apple guide Found, if working with AsyncSocket, and change
to
socket at least starting to accept incoming connections, but connect handler not called |
oxrider: |
@wl33 |
Thank you very much. From: Tengyu Liu notifications@github.com @wl33https://github.com/wl33 You are receiving this because you were mentioned. |
I got the same problem. IOS app on iPhone is server, and also is a AccessPoint(AP).And Android app is client.When client trying to connect to server, it got an error below:
And, of course, it doesn't run acceptNewSocket callback. It seems like server didn't accept a connection.
Is that could be a bug hiding very deep?And, any help will be appreciated. |
This issue has been marked as stale, it will be closed automatically if there is no further activity. |
I have created two sockets with the following code in
viewDidLoad
:and hoping that
socket
would upload data to my server andlistenSocket
would listen to connection from another process from the server. So I madelistenSocket
start listening with this block of code:I then added
NSLog
insocket: didAcceptNewSocket:
function to see if the socket had accepted, it never accepts. I have tried using theconnect()
inC
on server,telnet
and using the IP address and port number directly in a browser and nothing triggered theNSLog
insocket: didAcceptNewSocket:
.Can I get some help on this? Thank you very much!
Node: I specified the accepting port number to a constant (19920) and got the IP address from the process on server that
socket
connects to.The text was updated successfully, but these errors were encountered: