6#ifndef __WVUNIXLISTENER_H
7#define __WVUNIXLISTENER_H
15class WvUnixListener :
public WvListener
18 WvUnixListener(
const WvUnixAddr &_addr,
int create_mode);
19 virtual ~WvUnixListener();
38 wv::function<
void(IWvStream*)> cb,
39 IWvStream *_connection);
42 const char *wstype()
const {
return "WvUnixListener"; }
WvStreamList holds a list of WvStream objects – and its select() and callback() functions know how to...
A Unix domain socket address is really just a filename.
virtual const WvUnixAddr * src() const
src() is a bit of a misnomer, but it returns the socket address.
IWvStream * accept()
return a new WvUnixConn socket corresponding to a newly-accepted connection.