43 return (sock->
listen() == 0);
57 while (((res = sock->
accept()) != 0) &&
60 if (res != 0)
return (
ETIME);
72 while (((res = sock->
available()) == 0) &&
80 if (res == 0)
return (0);
static uint32_t since(uint32_t start)
virtual bool on_accept(IOStream &ios)
virtual bool begin(Socket *sock)
void client(INET::addr_t &addr)
virtual void on_request(IOStream &ios)=0
void src(INET::addr_t &addr) const
virtual int run(uint32_t ms=0L)
virtual int disconnect()=0
virtual void on_connect(IOStream &ios)
virtual void on_disconnect()