#include <SocketBase.h>
Inheritance diagram for clawsoft.SocketBase:
Definition at line 17 of file SocketBase.h.
Public Methods | |
SocketBase () | |
~SocketBase () | |
const int | getSocket () |
Returns the socket's file descriptor value. | |
int | setSoTimeout (int) |
Defines the timeout before closing connection to the other end of communication. | |
char * | getClassName () |
Returns the name of the current class. | |
Protected Methods | |
int | setSockOption (int opname, void *optval, unsigned int siz) |
Is an interface to setsockopt. | |
int | setTCPOption (int opname, void *optval, unsigned int siz) |
void | setClassName (char *n) |
Call this method when you need to set the name of the class you're creating, typically int it's constructor, remeber that you must set the classname for every clas you create, that way you can have more information while being in a debuging process. | |
Protected Attributes | |
int | sock |
This file descriptor represents the socket itself as returned by socket(2) and accept(2). | |
int | port |
Defines the communications port used by the socket or the port which the socket server uses to listen requests. |
|
Definition at line 11 of file SocketBase.cpp. |
|
Definition at line 35 of file SocketBase.h. |
|
Returns the name of the current class.
Definition at line 18 of file Object.cpp. References clawsoft.Object.__cls_name. |
|
Returns the socket's file descriptor value.
Definition at line 38 of file SocketBase.h. References clawsoft.SocketBase.sock. |
|
|
Is an interface to setsockopt.
Definition at line 13 of file SocketBase.cpp. References clawsoft.SocketBase.sock. Referenced by clawsoft.SocketBase.setSoTimeout(). |
|
Defines the timeout before closing connection to the other end of communication.
Definition at line 28 of file SocketBase.cpp. References clawsoft.SocketBase.setSockOption(). |
|
Definition at line 23 of file SocketBase.cpp. |
|
Defines the communications port used by the socket or the port which the socket server uses to listen requests.
Definition at line 27 of file SocketBase.h. Referenced by clawsoft.ServerSocket.accept(), clawsoft.Socket.CreateSocket(), clawsoft.ServerSocket.CreateSocket(), clawsoft.Socket.getPort(), clawsoft.ServerSocket.getPort(), clawsoft.Socket.operator=(), and clawsoft.Socket.Socket(). |
|
This file descriptor represents the socket itself as returned by socket(2) and accept(2).
Definition at line 22 of file SocketBase.h. Referenced by clawsoft.ServerSocket.accept(), clawsoft.Socket.close(), clawsoft.ServerSocket.close(), clawsoft.Socket.CreateSocket(), clawsoft.ServerSocket.CreateSocket(), clawsoft.SocketBase.getSocket(), clawsoft.Socket.operator=(), clawsoft.Socket.operator>>(), clawsoft.Socket.read(), clawsoft.SocketBase.setSockOption(), clawsoft.Socket.Socket(), and clawsoft.Socket.write(). |
Powered by: