Logo Search packages:      
Sourcecode: libsocket version File versions  Download package

std::string Network::NetSocket::readn ( unsigned int  size  )  [virtual, inherited]

read a string from socket

size represente the number of byte to read

Implements Network::Socket.

Definition at line 577 of file netsocket.cc.

References Network::NetSocket::_read_line_bin().

    // _read_line_bin is bufferised with the same buffer as textual
    // protocols, so this function can be used for binary and text
    // protocols.
    return _read_line_bin(_socket, size);

Generated by  Doxygen 1.6.0   Back to index