#include <ExCSocket.h>
Graphe d'héritage de la classe ExCSocket
Membres publics | |
ExCSocket () | |
ExCSocket (ExCSocket &socket) | |
ExCSocket (int Handler) | |
ExCSocket (int *Handler) | |
ExCSocket (int domaine, int protocole) | |
~ExCSocket () | |
int | GetHandler (void) |
void | SetHandler (int) |
void | Init (void) |
char * | GetIp (void) |
int | GetSocketPort (void) |
void | SetSocketPort (int port) |
void | Close (void) |
ExCSocket () | |
ExCSocket (ExCSocket &socket) | |
ExCSocket (int Handler) | |
ExCSocket (int *Handler) | |
ExCSocket (int domaine, int protocole) | |
~ExCSocket () | |
int | GetHandler (void) |
void | SetHandler (int) |
void | Init (void) |
char * | GetIp (void) |
int | GetSocketPort (void) |
void | SetSocketPort (int port) |
void | Close (void) |
Attributs Publics | |
int | m_Port |
char * | m_pIP |
int | m_hSocket |
hostent * | m_pInfosHost |
in_addr | m_AdresseIP |
sockaddr_in | m_AdresseSocket |
char * | m_pIP |
hostent * | m_pInfosHost |
in_addr | m_AdresseIP |
sockaddr_in | m_AdresseSocket |
|
Définition à la ligne 8 du fichier ExNihiloServer/ExCSocket.cpp. Références ExCSocket(), Guard, m_hSocket, et m_Port. Référencé par ExCSocket(), ExCSocketClient::ExCSocketClient(), ExCSocketServer::ExCSocketServer(), et ~ExCSocket().
00009 {Guard(ExCSocket::ExCSocket()) 00010 m_Port=5000; 00011 m_hSocket=socket(AF_INET,SOCK_STREAM,0); 00012 if(m_hSocket==-1) 00013 { 00014 EXC 00015 } 00016 UnGuard |
|
Définition à la ligne 28 du fichier ExNihiloServer/ExCSocket.cpp. Références ExCSocket(), GetHandler(), GetIp(), Guard, m_hSocket, m_pIP, et m_Port.
00029 {Guard(ExCSocket::ExCSocket(ExCSocket& socket)) 00030 m_Port=socket.GetHandler(); 00031 m_hSocket=socket.GetHandler(); 00032 m_pIP=socket.GetIp(); 00033 UnGuard |
|
Définition à la ligne 18 du fichier ExNihiloServer/ExCSocket.cpp. Références ExCSocket(), Guard, et SetHandler().
00019 {Guard(ExCSocket::ExCSocket(int handler)) 00020 SetHandler(Handler); 00021 UnGuard |
|
Définition à la ligne 23 du fichier ExNihiloServer/ExCSocket.cpp. Références ExCSocket(), Guard, et SetHandler().
00024 {Guard(ExCSocket::ExCSocket(int handler)) 00025 SetHandler(*Handler); 00026 UnGuard |
|
Définition à la ligne 37 du fichier ExNihiloServer/ExCSocket.cpp. Références ExCSocket(), Guard, et m_hSocket.
00038 {Guard(ExCSocket::ExCSocket(int domaine,int protocole)) 00039 m_hSocket=socket(domaine,protocole,0); 00040 if(m_hSocket==-1) 00041 { 00042 EXC 00043 } 00044 UnGuard |
|
Définition à la ligne 46 du fichier ExNihiloServer/ExCSocket.cpp. Références ExCSocket(), Guard, et m_hSocket.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Définition à la ligne 98 du fichier ExNihiloServer/ExCSocket.cpp. Références Close(), Guard, et m_hSocket. Référencé par Close(), et ExCSocketClient::Connect().
00099 {Guard(void ExCSocket::Close(void)) 00100 close(m_hSocket); 00101 UnGuard |
|
|
|
Définition à la ligne 88 du fichier ExNihiloServer/ExCSocket.cpp. Références GetHandler(), Guard, et m_hSocket. Référencé par ExCSocket(), et GetHandler().
00089 {Guard(ExCSocket::GetHandler()) 00090 return m_hSocket; 00091 UnGuard |
|
|
|
Définition à la ligne 73 du fichier ExNihiloServer/ExCSocket.cpp. Références GetIp(), Guard, et m_pIP. Référencé par ExCSocket(), et GetIp().
00074 {Guard(ExCSocket::GetIp(void)) 00075 return m_pIP; 00076 UnGuard |
|
|
|
Définition à la ligne 78 du fichier ExNihiloServer/ExCSocket.cpp. Références GetSocketPort(), Guard, et m_Port. Référencé par GetSocketPort().
00079 {Guard(ExCSocket::GetSocketPort()) 00080 return m_Port; 00081 UnGuard |
|
Redéfinie dans ExCSocketServer, et ExCSocketClient. |
|
Redéfinie dans ExCSocketServer, et ExCSocketClient. Définition à la ligne 55 du fichier ExNihiloServer/ExCSocket.cpp. Références Guard, Init(), m_AdresseIP, m_AdresseSocket, m_pInfosHost, m_pIP, et m_Port. Référencé par Init().
00056 {Guard(ExCSocket::Init(void)) 00057 00058 if((m_pInfosHost=gethostbyname("lore"))==0) 00059 { 00060 EXC 00061 } 00062 memcpy(&m_AdresseIP,m_pInfosHost->h_addr,m_pInfosHost->h_length); 00063 m_pIP= new char[15]; 00064 sprintf(m_pIP,"%s",inet_ntoa(m_AdresseIP)); 00065 00066 memset(&m_AdresseSocket,0,sizeof(struct sockaddr_in)); 00067 m_AdresseSocket.sin_family= AF_INET;//le domaine 00068 m_AdresseSocket.sin_port=htons(m_Port); 00069 memcpy(&m_AdresseSocket.sin_addr,m_pInfosHost->h_addr,m_pInfosHost->h_length); 00070 00071 UnGuard |
|
|
|
Définition à la ligne 93 du fichier ExNihiloServer/ExCSocket.cpp. Références Guard, m_hSocket, et SetHandler(). Référencé par ExCSocket(), et SetHandler().
00094 {Guard(ExCSocket::SetHandler()) 00095 m_hSocket=handler; 00096 UnGuard |
|
|
|
Définition à la ligne 83 du fichier ExNihiloServer/ExCSocket.cpp. Références Guard, m_Port, et SetSocketPort(). Référencé par main(), et SetSocketPort().
00084 {Guard(ExCSocket::SetSocketPort(int port)) 00085 m_Port=port; 00086 UnGuard |
|
Définition à la ligne 66 du fichier include/Tools/ExCSocket.h. |
|
Définition à la ligne 65 du fichier ExNihiloServer/ExCSocket.h. Référencé par ExCSocketServer::Init(), ExCSocketClient::Init(), et Init(). |
|
Définition à la ligne 67 du fichier include/Tools/ExCSocket.h. |
|
Définition à la ligne 66 du fichier ExNihiloServer/ExCSocket.h. Référencé par ExCSocketClient::Connect(), ExCSocketServer::Init(), ExCSocketClient::Init(), Init(), et ExCSocketServer::Listen(). |
|
Définition à la ligne 64 du fichier include/Tools/ExCSocket.h. Référencé par Close(), ExCSocketClient::Connect(), ExCSocket(), GetHandler(), ExCSocketServer::Init(), ExCSocketServer::Listen(), SetHandler(), ~ExCSocket(), et ExCSocketServer::~ExCSocketServer(). |
|
Définition à la ligne 65 du fichier include/Tools/ExCSocket.h. |
|
Définition à la ligne 64 du fichier ExNihiloServer/ExCSocket.h. Référencé par ExCSocketServer::Init(), ExCSocketClient::Init(), et Init(). |
|
Définition à la ligne 63 du fichier include/Tools/ExCSocket.h. |
|
Définition à la ligne 62 du fichier ExNihiloServer/ExCSocket.h. Référencé par ExCSocket(), GetIp(), ExCSocketServer::Init(), ExCSocketClient::Init(), et Init(). |
|
Définition à la ligne 62 du fichier include/Tools/ExCSocket.h. Référencé par ExCSocket(), GetSocketPort(), ExCSocketServer::Init(), ExCSocketClient::Init(), Init(), et SetSocketPort(). |