Poco::Net

class RawSocketImpl

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

Description

This class implements a raw socket.

Inheritance

Direct Base Classes: SocketImpl

All Base Classes: SocketImpl, Poco::RefCountedObject

Known Derived Classes: ICMPSocketImpl

Member Summary

Member Functions: init, init2

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

RawSocketImpl

RawSocketImpl();

Creates an unconnected IPv4 raw socket with IPPROTO_RAW.

RawSocketImpl

RawSocketImpl(
    SOCKET sockfd
);

Creates a RawSocketImpl using the given native socket.

RawSocketImpl

RawSocketImpl(
    IPAddress::Family family,
    int proto = 255
);

Creates an unconnected raw socket.

The socket will be created for the given address family.

Destructor

~RawSocketImpl protected virtual

~RawSocketImpl();

Member Functions

init protected virtual

void init(
    int af
);

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

init2 protected

void init2(
    int af,
    int proto
);