#include <svutil.h>
Public Member Functions | |
| SVNetwork (const char *hostname, int port) | |
| Set up a connection to hostname on port. | |
| ~SVNetwork () | |
| Destructor. | |
| void | Send (const char *msg) |
| Put a message in the messagebuffer to the server and try to send it. | |
| char * | Receive () |
| void | Close () |
| Close the connection to the server. | |
| void | Flush () |
| Flush the buffer. | |
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.
| SVNetwork::~SVNetwork | ( | ) |
Destructor.
| void SVNetwork::Close | ( | ) |
Close the connection to the server.
| void SVNetwork::Flush | ( | ) |
Flush the buffer.
| char * SVNetwork::Receive | ( | ) |
Receive a message from the server. This will always return one line of char* (denoted by
).
| void SVNetwork::Send | ( | const char * | msg | ) |
Put a message in the messagebuffer to the server and try to send it.
1.6.3