7 #ifndef __WVTCPLISTENER_H
8 #define __WVTCPLISTENER_H
10 #include "wvlistener.h"
45 const char *wstype()
const {
return "WvTCPListener"; }
Class to easily create the Server side of a WvTCPConn.
virtual IWvStream * accept()
return a new WvTCPConn socket corresponding to a newly-accepted connection.
An IP+Port address also includes a port number, with the resulting form www.xxx.yyy....
WvTCPListener(const WvIPPortAddr &_listenport)
Create a WvStream that listens on _listenport of the current machine This is how you set up a TCP Ser...
WvStreamList holds a list of WvStream objects – and its select() and callback() functions know how to...
virtual const WvIPPortAddr * src() const
src() is a bit of a misnomer, but it returns the listener port.