|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||
#include "ot/net/SocketFactory.h"

| Method Summary | |
virtual RefPtr< Socket > |
createSocket()Creates an unconnected Socket. |
virtual RefPtr< Socket > |
createSocket(InetAddress* pAddress, int port)Creates a Socket and connects it to the specified port on the network host designated by the provided InetAddress. |
virtual RefPtr< Socket > |
createSocket(const String& host, int port)Creates a Socket that is connected to a specified host name and port. |
virtual RefPtr< Socket > |
createSocket(InetAddress* pAddress, int port, InetAddress* pLocalAddr, int localPort)Creates a Socket and connects it to the specified remote port on the network host designated by the provided InetAddress. |
virtual RefPtr< Socket > |
createSocket(const String& host, int port, InetAddress* pLocalAddr, int localPort)Creates a Socket that is connected to a specified host name and port. |
static RefPtr< SocketFactory > |
GetDefault()Returns the default implementation of the SocketFactory class. |
| Methods inherited from class ot::ManagedObject |
addRef(), getRefCount(), onFinalRelease(), operator=(const ManagedObject&), release() |
| Method Detail |
virtual RefPtr< Socket > createSocket()
SocketException - virtual RefPtr< Socket > createSocket(InetAddress* pAddress,
int port)
pAddress - port - SocketException - NullPointerException - virtual RefPtr< Socket > createSocket(const String& host,
int port)
host - UnknownHostException - SocketException - virtual RefPtr< Socket > createSocket(InetAddress* pAddress,
int port,
InetAddress* pLocalAddr,
int localPort)
If pLocalAddr is null, the socket is bound to any interface on the local host. If localPort is 0, the operating system chooses an unused local port number.
pAddress - port - pLocalAddr - localPort - NullPointerException - SocketException - virtual RefPtr< Socket > createSocket(const String& host,
int port,
InetAddress* pLocalAddr,
int localPort)
The host name is first resolved into an InetAddress before connecting to it.
host - port - pLocalAddr - localPort - UnknownHostException - SocketException - static RefPtr< SocketFactory > GetDefault()
|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||