Page principale   Liste des namespaces   Hiérarchie des classes   Liste par ordre alphabétique   Liste des composants   Liste des fichiers   Membres des namespaces   Composants   Déclarations  

Référence de la classe ExManagerNetwork

#include <ExManagerNetWork.h>


Membres publics

void Reset (void)
void Init (void)
void Draw (void)
void Connect (void)
bool GetNetstatState (void)
void SetNetstatState (bool state)
ExCAction InputAction (ExCAction Action)

Membres publics statiques

ExManagerNetwork * CreateSingleton (void)

Membres privés

 ExManagerNetwork (void)
 ~ExManagerNetwork (void)

Attributs Privés

ExCSocketClientm_SocketClient
bool m_ShowNetStat

Attributs Privés Statiques

bool m_flag = false
ExManagerNetwork * m_instance = NULL


Documentation des contructeurs et destructeurs

ExManagerNetwork void    [private]
 

Définition à la ligne 43 du fichier ExManagerNetwork.cpp.

Références m_ShowNetStat.

00044 {
00045         m_ShowNetStat=false;
00046 }

~ExManagerNetwork void    [private]
 

Définition à la ligne 48 du fichier ExManagerNetwork.cpp.

00049 {
00050 }


Documentation des méthodes

void Connect void   
 

Définition à la ligne 100 du fichier ExManagerNetwork.cpp.

Références Connect(), et Guard.

Référencé par Connect(), et InputAction().

00101 {
00102 Guard(void ExManagerNetwork::Connect(void))
00103 
00104 UnGuard
00105 }

ExManagerNetwork * CreateSingleton void    [static]
 

Définition à la ligne 29 du fichier ExManagerNetwork.cpp.

Références CreateSingleton(), Guard, m_flag, et m_instance.

Référencé par CreateSingleton(), et main().

00029                                                        {
00030 Guard(ExManagerNetwork* ExManagerNetwork::CreateSingleton(void))
00031         if(!m_flag)
00032         {
00033                 m_flag = true; // We are creating the error log now, so set flag to true
00034                 m_instance = new ExManagerNetwork; // Create the error log
00035         }else
00036         {
00037                 std::cout<<"Error singleton already created"<<std::endl;
00038         }
00039         return m_instance; 
00040 UnGuard
00041 }

void Draw void   
 

Définition à la ligne 78 du fichier ExManagerNetwork.cpp.

Références ExNihilo::EnterOrthoMode(), ExNihilo::LeaveOrthoMode(), et ExNihilo::RenderBitmapString().

Référencé par ExManagerOutput::DrawScene().

00079 {
00080         if(m_ShowNetStat)
00081         {
00082                 glDisable(GL_LIGHTING);
00083                 ExNihilo::EnterOrthoMode();     
00084                 ExNihilo::RenderBitmapString(30,glutGet(GLUT_WINDOW_HEIGHT)-100,(void *)GLUT_BITMAP_HELVETICA_12,"NetStat");
00085                 ExNihilo::RenderBitmapString(30,glutGet(GLUT_WINDOW_HEIGHT)-80,(void *)GLUT_BITMAP_HELVETICA_12,"Ping : No Connexion");
00086                 ExNihilo::LeaveOrthoMode();
00087                 glEnable(GL_LIGHTING);
00088         }
00089 }

bool GetNetstatState void    [inline]
 

Définition à la ligne 91 du fichier ExManagerNetWork.h.

00092 {return m_ShowNetStat;}

void Init void   
 

Définition à la ligne 52 du fichier ExManagerNetwork.cpp.

Référencé par InitManager().

00053 {
00054         /*m_SocketClient = new ExCSocketClient;
00055         m_SocketClient->SetSocketPort(5000);
00056         m_SocketClient->Init("ploksoftware");
00057         m_SocketClient->Connect();*/
00058 /*      WSADATA WSAData;
00059         WSAStartup(MAKEWORD(2,0), &WSAData);
00060 
00061         SOCKET sock;
00062         SOCKADDR_IN sin;
00063         char *buffer = new char[255];
00064         
00065         sock = socket(AF_INET, SOCK_STREAM, 0); 
00066 
00067         sin.sin_addr.s_addr                     = inet_addr("192.168.0.1");
00068         sin.sin_family                          = AF_INET;
00069         sin.sin_port                            = htons(5000);
00070 
00071         connect(sock, (SOCKADDR *)&sin, sizeof(sin));
00072         //recv(sock, buffer, sizeof(buffer), 0);
00073         closesocket(sock);
00074         WSACleanup();
00075 */
00076 }

ExCAction InputAction ExCAction    Action
 

Définition à la ligne 107 du fichier ExManagerNetwork.cpp.

Références Connect(), CONNECT, Guard, InputAction(), ExCAction::m_Action, ExCAction::m_NextAction, et SetNetstatState().

Référencé par InputAction(), et ExManagerCommand::ProcesExCAction().

00108 {
00109 Guard(ExCAction ExManagerNetwork::InputAction(ExCAction Action))
00110         switch(Action.m_Action)
00111         {
00112         case SHOW_NET_STAT:
00113                 SetNetstatState(true);
00114                 break;
00115         case HIDE_NET_STAT:
00116                 SetNetstatState(false);
00117                 break;
00118         case CONNECT:
00119                 Connect();
00120                 break;
00121         }
00122         if(Action.m_NextAction){return *Action.m_NextAction;}
00123         else{return NOTHING;}
00124 UnGuard
00125 }

void Reset void   
 

Définition à la ligne 93 du fichier ExManagerNetwork.cpp.

Références Guard, et Reset().

Référencé par Reset().

00094 {
00095 Guard(void ExManagerNetwork::Reset(void))
00096 UnGuard
00097 }

void SetNetstatState bool    state [inline]
 

Définition à la ligne 92 du fichier ExManagerNetWork.h.

Références m_ShowNetStat.

Référencé par InputAction().

00092 {return m_ShowNetStat;}


Documentation des données imbriquées

bool m_flag = false [static, private]
 

Définition à la ligne 26 du fichier ExManagerNetwork.cpp.

Référencé par CreateSingleton().

ExManagerNetwork * m_instance = NULL [static, private]
 

Définition à la ligne 27 du fichier ExManagerNetwork.cpp.

Référencé par CreateSingleton().

bool m_ShowNetStat [private]
 

Définition à la ligne 71 du fichier ExManagerNetWork.h.

Référencé par ExManagerNetwork(), et SetNetstatState().

ExCSocketClient* m_SocketClient [private]
 

Définition à la ligne 70 du fichier ExManagerNetWork.h.


La documentation associée à cette classe a été générée à partir des fichiers suivants :
Généré le Tue Dec 10 18:18:45 2002 pour ExNihilo par doxygen1.3-rc1