Inheritance diagram for XFcSocket:
Public Member Functions | |
XFCIMPORT INT32 | open (INT32 aProtocolFamily, INT32 aType, INT32 aProtocol) |
Opens a socket. Returns -1 if error or 0 if success. | |
XFCIMPORT void * | getHandle () |
Gets handle for device. | |
XFCIMPORT void | setHandle (void *aSocket) |
Set handle for device - socket. | |
XFCIMPORT void | close () |
Release handle for reuse. | |
XFCIMPORT INT32 | getLocalAddress (XFcAddress &) |
Gets local address. Returns -1 if error else 0. | |
XFCIMPORT INT32 | getRemoteAddr (XFcAddress &) |
Gets remote address. Returns -1 if error else 0. | |
XFCIMPORT INT32 | setOption (INT32 aLevel, INT32 aOptname, const void *aOptval, INT32 aOptlen) |
Sets socket options. Wrapper around setsockoption. | |
XFCIMPORT INT32 | getOption (INT32 aLevel, INT32 aOptname, void *aOptval, INT32 *aOptlen) |
Gets socket options. Wrapper around getsockoption. | |
XFCIMPORT INT32 | ioctl (INT32 aCmd, UINT32 *aArgp) |
Ioctl socket. Wrapper around ioctl socket command. | |
virtual XFCIMPORT | ~XFcSocket () |
Virtual destructor. | |
Protected Member Functions | |
XFcSocket () | |
Protected constructor. | |
Protected Attributes | |
void * | mSocket |
Socket handle. |
|
Virtual destructor.
|
|
Protected constructor. Ensure abstract use of the class as there is no public static constructor. |
|
Release handle for reuse.
|
|
Gets handle for device.
|
|
Gets local address. Returns -1 if error else 0.
|
|
Gets socket options. Wrapper around getsockoption.
|
|
Gets remote address. Returns -1 if error else 0.
|
|
Ioctl socket. Wrapper around ioctl socket command.
|
|
Opens a socket. Returns -1 if error or 0 if success. Wrapper around socket command. If socket is already created recall will close existing socket and create a new one. |
|
Set handle for device - socket.
|
|
Sets socket options. Wrapper around setsockoption.
|
|
Socket handle.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |