#include <sock.h>
Inheritance diagram for SST::Socket:
Public Member Functions | |
Socket (SocketHostState *host, QObject *parent=NULL) | |
bool | active () |
Determine whether this socket is active. | |
void | setActive (bool act) |
Activate or deactivate this Socket. | |
virtual bool | bind (const QHostAddress &addr=QHostAddress::Any, quint16 port=0, QUdpSocket::BindMode mode=QUdpSocket::DefaultForPlatform)=0 |
Bind this socket to a local port and activate it if successful. | |
virtual bool | send (const Endpoint &ep, const char *data, int size)=0 |
Send a packet on this socket. | |
bool | send (const Endpoint &ep, const QByteArray &msg) |
virtual QList< Endpoint > | localEndpoints ()=0 |
Find all known local endpoints referring to this socket. | |
virtual quint16 | localPort ()=0 |
SocketFlow * | flow (const Endpoint &dst, Channel chan) |
Find flow associations attached to this socket. | |
virtual QString | errorString ()=0 |
Return a description of any error detected on bind() or send(). | |
Protected Member Functions | |
void | receive (QByteArray &msg, const SocketEndpoint &src) |
Implementation subclass calls this method with received packets. | |
Friends | |
class | SocketFlow |
|
Determine whether this socket is active. Only active sockets are returned by SocketHostState::activeSockets().
|
|
Bind this socket to a local port and activate it if successful.
Implemented in SST::UdpSocket. |
|
Find all known local endpoints referring to this socket.
Implemented in SST::UdpSocket. |
|
Implementation subclass calls this method with received packets.
|
|
Send a packet on this socket.
Implemented in SST::UdpSocket. |
|
Activate or deactivate this Socket. Only active sockets are returned from calls to activeSockets().
|