class Socket Socket class.
Class to manipulate sockets. The socket class is a generic socket API.
virtual ~Socket(void)
MsgAddr getAddr(void) const
MsgAddr getPartner(void) const
int getRecvBuf(void) const
int getSendBuf(void) const
bool isConnected(void) const
bool isOpen(void) const
virtual error_t async(bool enable=true)
virtual error_t bind(const MsgAddr* addr)
virtual error_t connect(const MsgAddr& addr)
virtual error_t disconnect(void)
virtual error_t read(char* data, size_t len)
len - Number of bytes to read.
virtual error_t receive(Buffer** Data)
virtual error_t receive(Buffer* Data)
virtual error_t send(Buffer* b)
b - Buffer containing the message to be sent.
virtual error_t send(const MsgAddr& to, Buffer* b)
b - Buffer containing the message to be sent.
error_t wait(wtime_t maxtime) const
void setPool(BufferPool* pool)
void setPool(SocketPool* pool)
error_t setRecvBuf(int nBytes)
error_t setSendBuf(int nBytes)
alphabetic index hierarchy of classes
generated by doc++