|
QSDK 1.1 Documentation |
#include <Q/net.h>
Inheritance diagram for Net2::Socket:

Public Types | |
| typedef Com::Ptr< Socket > | PTR |
Public Member Functions | |
| virtual void | getRemoteAddress (Address **addrP) const=0 |
| virtual void | getLocalAddress (Address **addrP) const=0 |
| virtual void | setRemoteAddress (Address *addr)=0 |
| virtual void | setAddresses (Address *localAddress, Address *remoteAddress)=0 |
| virtual void | setLocalAddress (Address *addr)=0 |
| virtual bool | valid () const=0 |
| virtual void | reuseAddress (bool reuse)=0 |
| virtual Utils::Result | connect ()=0 |
| virtual Utils::Result | bind ()=0 |
| virtual Utils::Result | accept (Socket **sockP)=0 |
| virtual void | close ()=0 |
Static Public Attributes | |
| Com::UUID | IID |
|
|
For server sockets which have clients connecting to them, accept the next connection from the queue and create a new Socket to represent it. When the caller is finished with the client socket it should call Unknown::release() to free it. |
|
|
Bind the socket to the previously specified local address. |
|
|
Close the network connection represented by this socket. |
|
|
Connect the socket to the previously specified remote address. |
|
|
Get the local address associated with the socket. The address returned will have had its reference count increased by one - the caller should call Unknown::release() when it is finished with the address. |
|
|
Get the remote address associated with the socket. The address returned will have had its reference count increased by one - the caller should call Unknown::release() when it is finished with the address. |
|
|
Call reuseAddress(true) if the socket is to allow local port reuse (i.e. multiple sockets sharing the same local port). This is normally used on server sockets which can be connected to. |
|
||||||||||||
|
Set both the local and remote addresses for the socket. |
|
|
Set the remote address for the socket. The socket will take an extra reference to the address using Unknown::addRef(). |
|
|
Set the remote address for the socket. The socket will take an extra reference to the address using Unknown::addRef(). |
|
|
Return true if the socket is still valid. |
|
|
COM IID 36640680-e484-44d1-9295-814f847de8c5 Reimplemented from Com::Unknown. |
|
|
|
Qube Software Limited © 2000-2004
|
|