Distributed Objects over a unix domain socket
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