gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
GmshServer Class Referenceabstract

#include <GmshSocket.h>

Inheritance diagram for GmshServer:
Collaboration diagram for GmshServer:

Public Member Functions

 GmshServer ()
 
virtual ~GmshServer ()
 
virtual int NonBlockingSystemCall (const std::string &exe, const std::string &args)=0
 
virtual int NonBlockingWait (double waitint, double timeout, int socket=-1)=0
 
int Start (const std::string &exe, const std::string &args, const std::string &sockname, double timeout)
 
int Shutdown ()
 
- Public Member Functions inherited from GmshSocket
 GmshSocket ()
 
 ~GmshSocket ()
 
int Select (int seconds, int microseconds, int socket=-1)
 
void SendMessage (int type, int length, const void *msg)
 
void SendString (int type, const char *str)
 
void Info (const char *str)
 
void Warning (const char *str)
 
void Error (const char *str)
 
void Progress (const char *str)
 
void MergeFile (const char *str)
 
void OpenProject (const char *str)
 
void ParseString (const char *str)
 
void SpeedTest (const char *str)
 
void Option (int num, const char *str)
 
int ReceiveHeader (int *type, int *len, int *swap)
 
int ReceiveMessage (int len, void *buffer)
 
int ReceiveString (int len, char *str)
 
void CloseSocket (int s)
 
void ShutdownSocket (int s)
 
unsigned long int SentBytes ()
 
unsigned long int ReceivedBytes ()
 

Private Attributes

int _portno
 

Additional Inherited Members

- Public Types inherited from GmshSocket
enum  MessageType {
  GMSH_START = 1, GMSH_STOP = 2, GMSH_INFO = 10, GMSH_WARNING = 11,
  GMSH_ERROR = 12, GMSH_PROGRESS = 13, GMSH_MERGE_FILE = 20, GMSH_PARSE_STRING = 21,
  GMSH_VERTEX_ARRAY = 22, GMSH_PARAMETER = 23, GMSH_PARAMETER_QUERY = 24, GMSH_PARAMETER_QUERY_ALL = 25,
  GMSH_PARAMETER_QUERY_END = 26, GMSH_CONNECT = 27, GMSH_OLPARSE = 28, GMSH_PARAMETER_NOT_FOUND = 29,
  GMSH_SPEED_TEST = 30, GMSH_PARAMETER_CLEAR = 31, GMSH_PARAMETER_UPDATE = 32, GMSH_OPEN_PROJECT = 33,
  GMSH_CLIENT_CHANGED = 34, GMSH_PARAMETER_WITHOUT_CHOICES = 35, GMSH_PARAMETER_QUERY_WITHOUT_CHOICES = 36, GMSH_OPTION_1 = 100,
  GMSH_OPTION_2 = 101, GMSH_OPTION_3 = 102, GMSH_OPTION_4 = 103, GMSH_OPTION_5 = 104
}
 
- Protected Member Functions inherited from GmshSocket
int _sendData (const void *buffer, int bytes)
 
int _receiveData (void *buffer, int bytes)
 
void _swapBytes (char *array, int size, int n)
 
void _sleep (int ms)
 
- Protected Attributes inherited from GmshSocket
int _sock
 
std::string _sockname
 
unsigned long int _sent
 
unsigned long int _received
 

Detailed Description

Definition at line 338 of file GmshSocket.h.

Constructor & Destructor Documentation

◆ GmshServer()

GmshServer::GmshServer ( )
inline

Definition at line 343 of file GmshSocket.h.

◆ ~GmshServer()

virtual GmshServer::~GmshServer ( )
inlinevirtual

Definition at line 344 of file GmshSocket.h.

Member Function Documentation

◆ NonBlockingSystemCall()

virtual int GmshServer::NonBlockingSystemCall ( const std::string &  exe,
const std::string &  args 
)
pure virtual

Referenced by Start().

Here is the caller graph for this function:

◆ NonBlockingWait()

virtual int GmshServer::NonBlockingWait ( double  waitint,
double  timeout,
int  socket = -1 
)
pure virtual

Referenced by Start().

Here is the caller graph for this function:

◆ Shutdown()

int GmshServer::Shutdown ( )
inline

Definition at line 464 of file GmshSocket.h.

Here is the call graph for this function:

◆ Start()

int GmshServer::Start ( const std::string &  exe,
const std::string &  args,
const std::string &  sockname,
double  timeout 
)
inline

Definition at line 351 of file GmshSocket.h.

Here is the call graph for this function:

Member Data Documentation

◆ _portno

int GmshServer::_portno
private

Definition at line 340 of file GmshSocket.h.

Referenced by Shutdown(), and Start().


The documentation for this class was generated from the following file: