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

int Poco::Net::SocketImpl::sendBytes ( const void *  buffer,
int  length,
int  flags = 0 
) [virtual]

Shuts down both the receiving and the sending part of the socket connection.

Reimplemented in Poco::Net::StreamSocketImpl, Poco::Net::SecureServerSocketImpl, and Poco::Net::SecureStreamSocketImpl.

Definition at line 219 of file SocketImpl.cpp.

References error(), and lastError().

Referenced by Poco::Net::StreamSocketImpl::sendBytes(), Poco::Net::StreamSocket::sendBytes(), Poco::Net::RawSocket::sendBytes(), and Poco::Net::DatagramSocket::sendBytes().

      poco_assert (_sockfd != POCO_INVALID_SOCKET);

      int rc;
            rc = ::send(_sockfd, reinterpret_cast<const char*>(buffer), length, flags);
      while (rc < 0 && lastError() == POCO_EINTR);
      if (rc < 0) error();
      return rc;

Generated by  Doxygen 1.6.0   Back to index