Re: Using NSStream fails
Re: Using NSStream fails
- Subject: Re: Using NSStream fails
- From: Brian Bergstrand <email@hidden>
- Date: Wed, 21 Jul 2004 13:46:07 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jul 21, 2004, at 11:33 AM, Ivan Myrvold wrote:
>
I am trying to connect to a Unix app called asterisk running on my
>
computer on port 5038, but I always get the following error
>
>
NSError "POSIX error: Socket operation on non-socket"
>
Domain=NSPOSIXErrorDomain Code=38
>
Well, there's your explanation right there?
So you are trying to do a socket operation (like sendto()) on a
non-socket FD.
>
I don't know what I am doing wrong here. I hope someone knows.
>
>
I am using the SocketStreamTest (which I found here
>
http://homepage.mac.com/gallenx/.cv/gallenx/Public/
>
SocketStreamTest.zip-link.zip ) which have the following action on the
>
connect button:
>
Where is the error occuring? Calling
[getStreamsToHost:port:inputStream:outputStream:]? If so, I would say
there is something wrong with your host address. Maybe NSHost couldn't
resolve the address and is returning nil?
We need some more info..
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
In God we Trust -- all others must submit an X.509 certificate. -
Charles Forsythe
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA/AwUBQP6r5HnR2Fu2x7aiEQLS1QCfYVzqe9VX6tWgzZLfhT46BjofggEAoMru
hknffbBSESjTTEbZwVaxUfu7
=Nt8+
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.