• 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
Getting PID of a unix domain socket client
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting PID of a unix domain socket client


  • Subject: Getting PID of a unix domain socket client
  • From: "Murali J" <email@hidden>
  • Date: Wed, 28 Nov 2007 11:08:21 +0530

Hi all,
        I am writing a simple client server program using Unix domain sockets.
Client sends some 10 bytes to the server and the server responses with another 10 bytes.
       
        Is there any way I can get the PID of the client which sends the request to the server?!?
 
        In linux, I am able to do this by using getsockopt(). But in MAC OS X, I am able to get only GID and UID of the client. I am running Darwin Kernal 8.6.0.

        Any help regarding this is highly appreciated...

Thanks,
Murali J.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting PID of a unix domain socket client
      • From: Terry Lambert <email@hidden>
  • Prev by Date: Re: UDF driver location?
  • Next by Date: Re: UDF driver location?
  • Previous by thread: Re: Kernel debug kits 10.5.1/10.4.11
  • Next by thread: Re: Getting PID of a unix domain socket client
  • Index(es):
    • Date
    • Thread