Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

lrt::NetworkOutputStream Class Reference

Stream which sends data to a remote computer through a network. More...

#include <rtnetwork.h>

Inheritance diagram for lrt::NetworkOutputStream:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~NetworkOutputStream ()
virtual bool write (int b)
 Writes a byte to the output stream. More...

virtual bool write (const Array< char > &b, int off, int len)
 Writes part of an array to the output stream. More...

virtual bool write (const Array< char > &b)
 Writes the whole array b to the output stream. More...

virtual void close ()
 close() does nothing here, you should close the Socket instead.


Protected Methods

 NetworkOutputStream (Socket *sock)

Protected Attributes

Socket * sock

Friends

class Socket

Detailed Description

Stream which sends data to a remote computer through a network.


Member Function Documentation

bool lrt::NetworkOutputStream::write (  const Array< char > &    b )  [virtual]
 

Writes the whole array b to the output stream.

Since String is derived from Array<char> in libRT, you may also use this method to write Strings to the output stream.

Returns:
Whether writing the array succeeded.

Reimplemented from lrt::OutputStream.

bool lrt::NetworkOutputStream::write (  const Array< char > &    b,
int    off,
int    len
)  [virtual]
 

Writes part of an array to the output stream.

Returns:
Whether writing succeeded.

Reimplemented from lrt::OutputStream.

bool lrt::NetworkOutputStream::write (  int    b )  [virtual]
 

Writes a byte to the output stream.

Subclassers must implement this method.

Returns:
Whether writing succeeded.

Implements lrt::OutputStream.


The documentation for this class was generated from the following files:
This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer