• 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
Re: recvmsg() in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recvmsg() in Tiger


  • Subject: Re: recvmsg() in Tiger
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 13 May 2005 19:35:26 +0200


On 13.05.2005, at 11:38, Alastair Houghton wrote:

On 13 May 2005, at 10:02, Gerriet M. Denkmann wrote:

I was using recvmsg() on a pipe in Panther. Tiger tells me that a pipe is not a socket, which is correct.
The advice I got (thanks to all who replied) was: either use a normal read() with a pipe or use real sockets with recvmsg().
Well, kind of obvious (I had hoped for some Tiger magic to turn a pipe into a socket).

:-)

I guess I will have to use sockets, but I do not know how to create one, and secondly, how to redirect stdout to the socket.

Maybe a kind soul will have an insight and some mercy.

Just replace your call to pipe() with something like

  int pipefds[2];
  int ret = socketpair (AF_UNIX, SOCK_STREAM, 0, pipefds);

After which, it's the same as using a pipe.

Wondurful! It now works on Panther and on Tiger. Thanks a lot.

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


References: 
 >Re: recvmsg() in Tiger (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: recvmsg() in Tiger (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Where/how to store lots of user application data
  • Next by Date: Re: Where/how to store lots of user application data
  • Previous by thread: Re: recvmsg() in Tiger
  • Next by thread: kMDItemTextContent: how to make the content indexed?
  • Index(es):
    • Date
    • Thread