Tesseract 3.01
SVNetwork Class Reference

#include <svutil.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

SVNetwork::SVNetwork ( const char *  hostname,
int  port 
)

Set up a connection to hostname on port.

SVNetwork::~SVNetwork ( )

Destructor.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines