8 #ifndef __IWVLISTENER_H
9 #define __IWVLISTENER_H
11 #include "iwvstream.h"
13 typedef wv::function<void(
IWvStream*)> IWvListenerCallback;
32 virtual IWvListenerCallback
onaccept(IWvListenerCallback _cb) = 0;
41 virtual void addwrap(IWvListenerWrapper _wrapper) = 0;
45 0xee, 0xc0, 0x0f, 0xa7, 0xe3, 0x08, 0xeb}});
The basic interface which is included by all other XPLC interfaces and objects.
virtual IWvListenerCallback onaccept(IWvListenerCallback _cb)=0
Set a user-defined function to be called when a new connection is available.
virtual IWvStream * accept()=0
Accept a connection from this stream.
virtual void addwrap(IWvListenerWrapper _wrapper)=0
Add a wrapper function for this stream: something that accept() will call to possibly wrap the stream...
WvString is an implementation of a simple and efficient printable-string class.
#define DEFINE_IID(iface, u1, u2, u3, u4, u5, u6, u7, u8, u9, u10, u11)
Used to define the IID of an interface.