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

std::string Network::LocalSocket::readn ( std::string &  filename,
int  timeout,
unsigned int  size 

read a string and put the client named socket name in filename with a timeout

size represente the number of byte to read

Definition at line 340 of file localsocket.cc.

References _read_line_bin(), and Network::Socket::_set_timeout().

    if (!size || size > _buffer.size())
      _set_timeout(true, _socket, timeout);
    // _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, filename, size);

Generated by  Doxygen 1.6.0   Back to index