#include <psocket.h>
Inheritance diagram for P::Socket:

Public Types | |
| enum | wait_t { pendingInput = 0x01, pendingOutput = 0x02 } |
| Socket wait flags. More... | |
Public Member Functions | |
| Socket (int domain, int type, int proto) throw (IOError) | |
| Socket constructor. | |
| Socket (io_handle_t handle, int domain, int type, int proto) throw (IOError) | |
| Socket handle constructor. | |
| ~Socket () throw () | |
| void | close () throw (IOError) |
| Close the socket. | |
| size_t | write (const char *buffer, size_t count) throw (IOError) |
| Write to device. | |
| size_t | peek (char *buffer, size_t count) throw (IOError) |
| Peek incoming data on device. | |
| size_t | read (char *buffer, size_t count) throw (IOError) |
| Read from device. | |
| bool | isSeekable () const throw () |
| Test if device is seekable. | |
| int | domain () const throw () |
| Protocol domain. | |
| int | type () const throw () |
| Socket type. | |
| int | protocol () const throw () |
| Socket protocol. | |
| int | wait (int wait, unsigned int timeout) throw (IOError) |
| Wait for socket events. | |
| void | setBroadcast (bool enable) throw (IOError) |
| void | setRouting (bool enable) throw (IOError) |
| void | bind (const NetworkAddress &addr, port_t port) throw (IOError) |
| Bind socket to given address and port. | |
| void | getName (NetworkAddress &addr, port_t &port) const throw (LogicError,IOError) |
| Get name of socket. | |
| void | getPeer (NetworkAddress &addr, port_t &port) const throw (LogicError,IOError) |
| Get address of peer. | |
Definition at line 49 of file psocket.h.
|
|
Socket wait flags.
|
|
||||||||||||||||
|
Socket constructor. Constructs a socket for the given protocol domain, socket type and protocol. for and accept incoming client connections.
|
|
||||||||||||||||||||
|
Socket handle constructor.
|
|
|
|
|
||||||||||||
|
Bind socket to given address and port.
|
|
|
Close the socket.
Reimplemented from P::IODevice. Reimplemented in P::FTPClient, and P::StreamSocket. |
|
|
Protocol domain.
|
|
||||||||||||
|
Get name of socket.
Reimplemented in P::StreamSocketServer. |
|
||||||||||||
|
Get address of peer.
|
|
|
Test if device is seekable.
Reimplemented from P::IODevice. |
|
||||||||||||
|
Peek incoming data on device. Retrieves data from the receive queue without removing it.
Reimplemented from P::IODevice. Reimplemented in P::DatagramSocket. |
|
|
Socket protocol.
|
|
||||||||||||
|
Read from device.
Reimplemented from P::IODevice. Reimplemented in P::FTPData, and P::DatagramSocket. |
|
|
|
|
|
|
|
|
Socket type.
Reimplemented in P::FTPClient. |
|
||||||||||||
|
Wait for socket events.
|
|
||||||||||||
|
Write to device.
Reimplemented from P::IODevice. Reimplemented in P::FTPData, and P::DatagramSocket. |
1.3.3