• 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
Distributed Objects over a unix domain socket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distributed Objects over a unix domain socket


  • Subject: Distributed Objects over a unix domain socket
  • From: Stefan Pfetzing <email@hidden>
  • Date: Mon, 20 Mar 2006 14:34:48 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi List,

I'm quite new to cocoa and objective-c but I would like to implement a controlling server for multiple vpn connections (OpenVPN).

This server must verify that the user trying to configure a vpn or changing its state, is allowed to do so. Therefore I thought to use unix domain sockets in combination with distributed objects, and verify the "peer" via cmsg (see sys/socket.h). My problem is now, how do I get the new fd, which NSSocketPort got from the "accept" call.

Using the makeNewConnection delegate method from NSConnection does not work as I thought it works.

My testing sourcecode is availible at http://www.dreamind.de/files/ DOTest.tar.gz

Is that a right way, or should I use some other technique for IPC? (then I have another question, how to write my own NSPort "clone" which directly manipulates a socket?)

Besides that, I wonder how its possible in the server to kinda "kick" a client from the server...

bye

Stefan

- --
        http://www.dreamind.de/
Oroborus and Debian GNU/Linux Developer.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFEHq94i50xCpfDmMsRAuoYAKDInfWHsq9c3Zqoq9tyIu2z+wtQzQCgtWxI
Zospk1yeU4AykQyEu9zDZNc=
=D4uc
-----END PGP SIGNATURE-----
_______________________________________________
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


  • Prev by Date: Re: White caret cursor, how to do it?
  • Next by Date: Re: White caret cursor, how to do it?
  • Previous by thread: Re: Crash in NSOpenPanel
  • Next by thread: Bindings across multiple Nibs
  • Index(es):
    • Date
    • Thread