recvmsg() in Tiger
recvmsg() in Tiger
- Subject: recvmsg() in Tiger
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 13 May 2005 00:47:00 +0200
I have some code which works just fine on Panther:
int comms[2];
pipe(comms);
struct msghdr msg ;
... fill msg
ssize_t bytesRead = recvmsg( comms[0], &msg, 0 );
In Panther the program now waits until some data arrives on the pipe.
But Tiger immediately tells me: "Socket operation on a non-socket".
And, when I look at my code, this makes sense: a pipe probably is not a
socket (not that I know the difference).
So two questions:
Why did this work on Panther?
And (much more important): what do I have to do to make it work on
Tiger?
Kind regards,
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden