Re: client/server communication using CFSocket
Re: client/server communication using CFSocket
- Subject: Re: client/server communication using CFSocket
- From: Frederick Cheung <email@hidden>
- Date: Thu, 19 Jan 2006 12:54:14 +0000
On 1/19/06, Rola Alame <email@hidden> wrote:
> Hello.
>
> I'm writing two applications: one is a client and the other is a server for
> them to communicate over the network using TCP/IP. i'm using high level
> CFSocket function. The client is working fine. however, at the server, i'm
> successfully creating the socket (with CFSocketCreate), but when i use
> "CFSocketSetAddress" to bind a port to that socket, it's returning
> kCFSocketError. and i can't figure out why. Here's the code for the server:
>
> when irun this code i always get the error message printed on the terminal.
> Can anyone tell me what the problem could be and how to solve it?
>
Just checking, 192.168.1.11 is an address of one of your machine's
interfaces (unless you have a particular need often it's best to bind
to INADDR), and there's no one else listening on port 2222 (use lsof
to check) ?
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden