#include <wvunixsocket.h>
Inheritance diagram for WvUnixConn:
Public Methods | |
WvUnixConn (const WvUnixAddr &_addr) | |
virtual | ~WvUnixConn () |
const WvUnixAddr & | localaddr () |
virtual const WvUnixAddr * | src () const |
WvUnixConn (const WvUnixAddr &_addr) | |
virtual | ~WvUnixConn () |
const WvUnixAddr & | localaddr () |
virtual const WvUnixAddr * | src () const |
Protected Methods | |
WvUnixConn (int _fd, const WvUnixAddr &_addr) | |
WvUnixConn (int _fd, const WvUnixAddr &_addr) | |
Protected Attributes | |
WvUnixAddr | addr |
Friends | |
class | WvUnixListener |
Unlike WvTCPConn, WvUnixConn makes connections synchronously because either the remote server is there, or it isn't. For convenience, we'll just ignore situations where it's a local server but still slow.
FIXME: support SOCK_DGRAM mode somehow. This is a bit tricky since the listener/connection separation doesn't make as much sense then. I guess we could just ignore the listener or something...
FIXME: use the weird credential-passing stuff to exchange pid, uid, and gid with the remote end of the socket. See the unix(7) man page. This would be very cool for authentication purposes.
Definition at line 29 of file include/wvunixsocket.h.
|
connect an already-open socket (used by WvUnixListener) Definition at line 25 of file wvunixsocket.cc. |
|
connect a new socket Definition at line 32 of file wvunixsocket.cc. References addr, WvStream::getfd(), WvStream::rwfd, WvStream::seterr(), WvUnixAddr::sockaddr(), and WvUnixAddr::sockaddr_len(). |
|
Definition at line 61 of file wvunixsocket.cc. References WvStream::close(). |
|
connect an already-open socket (used by WvUnixListener) |
|
connect a new socket |
|
|
|
the local address of this socket (ie. from getsockname()) really useful only for transparent proxies, but always available. may be 0.0.0.0 if we did not bind explicitly! Definition at line 53 of file ipstreams/wvunixsocket.h. |
|
the local address of this socket (ie. from getsockname()) really useful only for transparent proxies, but always available. may be 0.0.0.0 if we did not bind explicitly! Definition at line 53 of file include/wvunixsocket.h. |
|
return the remote address (source of all incoming packets), which is a constant for any given connection. This doesn't make much sense in Unix domain sockets, so we just return localaddr() instead. Reimplemented from WvStream. |
|
return the remote address (source of all incoming packets), which is a constant for any given connection. This doesn't make much sense in Unix domain sockets, so we just return localaddr() instead. Reimplemented from WvStream. Definition at line 71 of file wvunixsocket.cc. References addr. |
|
Definition at line 31 of file include/wvunixsocket.h. |
|
Definition at line 33 of file ipstreams/wvunixsocket.h. Referenced by src(), and WvUnixConn(). |