class osockstream : public ostrstream

Data type for output socket stream class

Inheritance:


Public Fields

double x[2]
Bounding box.

Public Methods

osockstream(int port, const char *hostname)
The constructor takes as input the name of the server and the port number through which the communication will take place
int send()
Send the current in the stream data to the server specified by name "hostname" (in the constructor) on port number "port"
~osockstream()
Virtual destructor

Documentation

Data type for output socket stream class. The class is used as client to send data to a server on a specified port number. One object of the class can be used for one time send of data to the server. The user writes in the stream, as in any other output stream and when the data is ready to be send function send() has to be executed. Otherwise (if not executed) the destructor will send the data. *
double x[2]
Bounding box.

osockstream(int port, const char *hostname)
The constructor takes as input the name of the server and the port number through which the communication will take place. *

int send()
Send the current in the stream data to the server specified by name "hostname" (in the constructor) on port number "port". Return -1 if data has already been sent or 0 for success. *

~osockstream()
Virtual destructor. If the data hasn't been sent it sends it. *


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de