Poco::Net

class StreamSocketImpl

Library: Net
Package: Sockets
Header: Poco/Net/StreamSocketImpl.h

Description

This class implements a TCP socket.

Inheritance

Direct Base Classes: SocketImpl

All Base Classes: SocketImpl, Poco::RefCountedObject

Known Derived Classes: SecureStreamSocketImpl

Member Summary

Member Functions: sendBytes

Inherited Functions: acceptConnection, address, available, bind, close, connect, connectNB, duplicate, error, getBlocking, getBroadcast, getKeepAlive, getLinger, getNoDelay, getOOBInline, getOption, getRawOption, getReceiveBufferSize, getReceiveTimeout, getReuseAddress, getReusePort, getSendBufferSize, getSendTimeout, init, initSocket, initialized, invalidate, ioctl, lastError, listen, peerAddress, poll, receiveBytes, receiveFrom, referenceCount, release, sendBytes, sendTo, sendUrgent, setBlocking, setBroadcast, setKeepAlive, setLinger, setNoDelay, setOOBInline, setOption, setRawOption, setReceiveBufferSize, setReceiveTimeout, setReuseAddress, setReusePort, setSendBufferSize, setSendTimeout, setSockfd, shutdown, shutdownReceive, shutdownSend, socketError, sockfd

Constructors

StreamSocketImpl

StreamSocketImpl();

Creates a StreamSocketImpl.

StreamSocketImpl

StreamSocketImpl(
    SOCKET sockfd
);

Creates a StreamSocketImpl using the given native socket.

Destructor

~StreamSocketImpl protected virtual

virtual ~StreamSocketImpl();

Member Functions

sendBytes virtual

virtual int sendBytes(
    const void * buffer,
    int length,
    int flags = 0
);

Ensures that all data in buffer is sent.

See also: Poco::Net::SocketImpl::sendBytes()