Poco::Net

class SecureStreamSocket

Library: NetSSL_OpenSSL
Package: SSLSockets
Header: Poco/Net/SecureStreamSocket.h

Description

A subclass of StreamSocket for secure SSL sockets.

Inheritance

Direct Base Classes: StreamSocket

All Base Classes: Socket, StreamSocket

Member Summary

Member Functions: operator =

Inherited Functions: address, available, close, connect, connectNB, getBlocking, getKeepAlive, getLinger, getNoDelay, getOOBInline, getOption, getReceiveBufferSize, getReceiveTimeout, getReuseAddress, getReusePort, getSendBufferSize, getSendTimeout, impl, operator, operator !=, operator <, operator <=, operator =, operator >, operator >=, peerAddress, poll, receiveBytes, select, sendBytes, sendUrgent, setBlocking, setKeepAlive, setLinger, setNoDelay, setOOBInline, setOption, setReceiveBufferSize, setReceiveTimeout, setReuseAddress, setReusePort, setSendBufferSize, setSendTimeout, shutdown, shutdownReceive, shutdownSend, sockfd, supportsIPv4, supportsIPv6

Constructors

SecureStreamSocket

SecureStreamSocket();

Creates an unconnected stream socket.

Before sending or receiving data, the socket must be connected with a call to connect().

SecureStreamSocket

SecureStreamSocket(
    const SocketAddress & address
);

Creates a stream socket and connects it to the socket specified by address.

SecureStreamSocket

SecureStreamSocket(
    const Socket & socket
);

Creates the StreamSocket with the SocketImpl from another socket. The SocketImpl must be a StreamSocketImpl, otherwise an InvalidArgumentException will be thrown.

SecureStreamSocket protected

SecureStreamSocket(
    SocketImpl * pImpl
);

Destructor

~SecureStreamSocket virtual

virtual ~SecureStreamSocket();

Destroys the StreamSocket.

Member Functions

operator =

SecureStreamSocket & operator = (
    const Socket & socket
);

Assignment operator.

Releases the socket's SocketImpl and attaches the SocketImpl from the other socket and increments the reference count of the SocketImpl.