An interface used by GNet::SocketProtocol to deliver data from a socket. More...
#include <gsocketprotocol.h>
Public Member Functions | |
virtual | ~SocketProtocolSink () |
Destructor. More... | |
Protected Member Functions | |
virtual void | onData (const char *, std::string::size_type)=0 |
Called when data is read from the socket. More... | |
virtual void | onSecure (const std::string &peer_certificate)=0 |
Called once the secure socket protocol has been successfully negotiated. More... | |
Friends | |
class | SocketProtocolImp |
An interface used by GNet::SocketProtocol to deliver data from a socket.
Definition at line 112 of file gsocketprotocol.h.
|
virtual |
Destructor.
Definition at line 570 of file gsocketprotocol.cpp.
|
protectedpure virtual |
Called when data is read from the socket.
Implemented in GNet::Client, GNet::ResolverImp, and GNet::BufferedServerPeer.
|
protectedpure virtual |
Called once the secure socket protocol has been successfully negotiated.
Implemented in GSmtp::Client, GSmtp::RequestClient, GSmtp::SpamClient, GSmtp::AdminServerPeer, GSmtp::ServerPeer, GPop::ServerPeer, and GNet::ResolverImp.
|
friend |
Definition at line 119 of file gsocketprotocol.h.