gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <GmshSocket.h>
Public Types | |
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 } |
Public Member Functions | |
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 () |
Protected Member Functions | |
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 | |
int | _sock |
std::string | _sockname |
unsigned long int | _sent |
unsigned long int | _received |
Definition at line 59 of file GmshSocket.h.
Definition at line 65 of file GmshSocket.h.
|
inline |
Definition at line 156 of file GmshSocket.h.
|
inline |
Definition at line 163 of file GmshSocket.h.
|
inlineprotected |
Definition at line 119 of file GmshSocket.h.
Referenced by ReceiveHeader(), ReceiveMessage(), and ReceiveString().
|
inlineprotected |
Definition at line 104 of file GmshSocket.h.
Referenced by SendMessage().
|
inlineprotected |
Definition at line 146 of file GmshSocket.h.
Referenced by GmshClient::Connect().
|
inlineprotected |
Definition at line 135 of file GmshSocket.h.
Referenced by ReceiveHeader().
|
inline |
Definition at line 243 of file GmshSocket.h.
Referenced by GmshClient::Connect(), GmshClient::Disconnect(), GmshServer::Shutdown(), and GmshServer::Start().
|
inline |
Definition at line 200 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::_get(), Msg::Error(), onelab::remoteNetworkClient::sendError(), and onelab::remoteNetworkClient::waitOnSubClients().
|
inline |
Definition at line 198 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::_get(), Msg::Debug(), Msg::Direct(), Msg::Info(), onelab::remoteNetworkClient::sendInfo(), Msg::StatusBar(), and onelab::remoteNetworkClient::waitOnSubClients().
|
inline |
Definition at line 202 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::sendMergeFileRequest().
|
inline |
Definition at line 203 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::sendOpenProjectRequest().
|
inline |
|
inline |
Definition at line 204 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::sendParseStringRequest().
|
inline |
Definition at line 201 of file GmshSocket.h.
Referenced by Msg::ProgressMeter(), and onelab::remoteNetworkClient::sendProgress().
|
inline |
Definition at line 258 of file GmshSocket.h.
|
inline |
Definition at line 212 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::_get(), and onelab::remoteNetworkClient::waitOnSubClients().
|
inline |
Definition at line 229 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::_get(), and onelab::remoteNetworkClient::waitOnSubClients().
|
inline |
|
inline |
Definition at line 173 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::_get(), and onelab::remoteNetworkClient::waitOnSubClients().
|
inline |
Definition at line 186 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::_get(), onelab::remoteNetworkClient::_set(), onelab::remoteNetworkClient::clear(), onelab::remoteNetworkClient::runNonBlockingSubClient(), and SendString().
|
inline |
Definition at line 194 of file GmshSocket.h.
Referenced by Error(), PViewDataRemote::fillRemoteVertexArrays(), Info(), MergeFile(), OpenProject(), Option(), ParseString(), Progress(), SpeedTest(), GmshClient::Start(), GmshClient::Stop(), and Warning().
|
inline |
Definition at line 257 of file GmshSocket.h.
|
inline |
Definition at line 251 of file GmshSocket.h.
Referenced by GmshServer::Shutdown().
|
inline |
|
inline |
Definition at line 199 of file GmshSocket.h.
Referenced by onelab::remoteNetworkClient::sendWarning(), and Msg::Warning().
|
protected |
Definition at line 102 of file GmshSocket.h.
Referenced by _receiveData(), and ReceivedBytes().
|
protected |
Definition at line 102 of file GmshSocket.h.
Referenced by _sendData(), and SentBytes().
|
protected |
Definition at line 98 of file GmshSocket.h.
Referenced by _receiveData(), _sendData(), GmshClient::Connect(), GmshClient::Disconnect(), Select(), GmshServer::Shutdown(), and GmshServer::Start().
|
protected |
Definition at line 100 of file GmshSocket.h.
Referenced by GmshServer::Shutdown(), and GmshServer::Start().