Re: Using CFSocket to connect
Re: Using CFSocket to connect
- Subject: Re: Using CFSocket to connect
- From: Mike Laster <email@hidden>
- Date: Wed, 03 Jul 2002 00:46:13 -0400
I'm making progress. I can accept connections, and successfully read data
on those connections. Now I'm getting around to implementing connect and am
running into problems.
I successfully create a socket with CFSocketCreateWithSocketSignature, but
When I call:
CFSocketConnectToAddress(socketRef,socketSignature.address, 60);
I get a -1 error code. I'm not sure why it's failing.
The signature I'm using is:
D: (07-03 00:35:40.461) protocolFamily = 2
D: (07-03 00:35:40.461) socketType = 1
D: (07-03 00:35:40.463) protocol = 6
D: (07-03 00:35:40.464) address:
D: (07-03 00:35:40.466) family: 2
D: (07-03 00:35:40.466) port: 1200
D: (07-03 00:35:40.469) addr: 127.0.0.1
I currently have a server listening on port 1200, but it never sees a
connection attempt.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.