Exemple #1
0
void TCPSocket::onRecv(const MutableBuffer& buf)
{
    TraceLS(this) << "Recv: " << buf.size() << endl;
    onSocketRecv(buf, peerAddress());
}
void UDPSocket::onRecv(const MutableBuffer& buf, const net::Address& address)
{
    TraceS(this) << "Recv: " << buf.size() << endl;    
    //emitRecv(buf, address);
    onSocketRecv(buf, address);
}