WvStreams
wvunixsocket.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4  *
5  */
6 #ifndef __WVUNIXSOCKET_H
7 #define __WVUNIXSOCKET_H
8 
9 #include "wvfdstream.h"
10 #include "wvaddr.h"
11 
12 class WvIStreamList;
13 class WvUnixListener;
14 class WvUnixConn;
15 
16 #ifndef _WIN32
17 
33 class WvUnixConn : public WvFdStream
34 {
35  friend class WvUnixListener;
36 protected:
37  WvUnixAddr addr;
38 
40  WvUnixConn(int _fd, const WvUnixAddr &_addr);
41 
42 public:
44  WvUnixConn(const WvUnixAddr &_addr);
45 
46  virtual ~WvUnixConn();
47 
53  const WvUnixAddr &localaddr() { return addr; }
54 
61  virtual const WvUnixAddr *src() const;
62 
63 public:
64  const char *wstype() const { return "WvUnixConn"; }
65 };
66 
67 #endif // _WIN32
68 
69 #endif // __WVUNIXSOCKET_H
WvUnixConn::localaddr
const WvUnixAddr & localaddr()
the local address of this socket (ie.
Definition: wvunixsocket.h:53
WvUnixConn::src
virtual const WvUnixAddr * src() const
return the remote address (source of all incoming packets), which is a constant for any given connect...
Definition: wvunixsocket.cc:140
WvUnixListener
Server end of a Unix Sockets stream.
Definition: wvunixlistener.h:15
WvFdStream
Base class for streams built on Unix file descriptors.
Definition: wvfdstream.h:20
WvUnixConn::WvUnixConn
WvUnixConn(int _fd, const WvUnixAddr &_addr)
connect an already-open socket (used by WvUnixListener)
Definition: wvunixsocket.cc:96
WvIStreamList
WvStreamList holds a list of WvStream objects – and its select() and callback() functions know how to...
Definition: wvistreamlist.h:20
WvUnixConn
WvStream-based Unix domain socket connection class.
Definition: wvunixsocket.h:33
WvUnixAddr
A Unix domain socket address is really just a filename.
Definition: wvaddr.h:429