tesseract
4.0.0-1-g2a2b
|
#include <svutil.h>
Public Member Functions | |
SVNetwork (const char *hostname, int port) | |
Set up a connection to hostname on port. More... | |
~SVNetwork () | |
Destructor. More... | |
void | Send (const char *msg) |
Put a message in the messagebuffer to the server and try to send it. More... | |
char * | Receive () |
void | Close () |
Close the connection to the server. More... | |
void | Flush () |
Flush the buffer. More... | |
The SVNetwork class takes care of the remote connection for ScrollView This means setting up and maintaining a remote connection, sending and receiving messages and closing the connection. It is designed to work on both Linux and Windows.
SVNetwork::SVNetwork | ( | const char * | hostname, |
int | port | ||
) |
Set up a connection to hostname on port.
Definition at line 392 of file svutil.cpp.
SVNetwork::~SVNetwork | ( | ) |
void SVNetwork::Close | ( | ) |
Close the connection to the server.
Definition at line 275 of file svutil.cpp.
void SVNetwork::Flush | ( | ) |
char * SVNetwork::Receive | ( | ) |
Receive a message from the server. This will always return one line of char* (denoted by
).
Definition at line 227 of file svutil.cpp.
void SVNetwork::Send | ( | const char * | msg | ) |
Put a message in the messagebuffer to the server and try to send it.
Definition at line 209 of file svutil.cpp.