• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
recvmsg() in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: recvmsg() in Tiger
      • From: Chaz McGarvey <email@hidden>
  • Prev by Date: [ANN] RBSplitView 1.1.2
  • Next by Date: kMDItemTextContent: how to make the content indexed?
  • Previous by thread: [ANN] RBSplitView 1.1.2
  • Next by thread: Re: recvmsg() in Tiger
  • Index(es):
    • Date
    • Thread