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

std::string Network::NetSocket::readn ( int &  port,
std::string &  host,
unsigned int  size 
) [inherited]

Get a line from socket and store client hostname and port in port and host variable.

Parameters:
size represente the number of byte to read

Definition at line 557 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, port, host, size);
  }


Generated by  Doxygen 1.6.0   Back to index