ClanSoft logo
ClanSoft logo
Entire Class Index Main Class Index Cross Index Global Index

Class CL_OutputSource_Socket

Output Source Socket Class
Contained in: global
Derived from: CL_OutputSource
Derived by: none
Group: Network (Sockets)

#include <ClanLib/network.h>


public function member index:

Construction:

CL_OutputSource_Socket(const CL_Socket& socket);
virtual ~CL_OutputSource_Socket();

Attributes:

virtual int tell() const;
virtual int size() const;

Operations:

virtual int write(const void* data, int size);
virtual void open();
virtual void close();
virtual CL_OutputSource* clone();
 

private function member index:

Implementation:

CL_OutputSource_Socket();
 

Description:


Function Member Descriptions:

CL_OutputSource_Socket::CL_OutputSource_Socket - Output Source Socket Constructor
CL_OutputSource_Socket(const CL_Socket& socket);


CL_OutputSource_Socket::clone - Make a copy of the current outputsource, standing at the same position.
virtual CL_OutputSource* clone();
Returns - The copy of the output source.



CL_OutputSource_Socket::close - Closes the output source.
virtual void close();


CL_OutputSource_Socket::open - Opens the output source. By default, it is open.
virtual void open();


CL_OutputSource_Socket::size - Returns the size of the output source
virtual int size() const;
Returns - Size of the output source.



CL_OutputSource_Socket::tell - Returns current position in output source.
virtual int tell() const;
Returns - Current position in source.



CL_OutputSource_Socket::write - Writes larger amounts of data (no endian and 64 bit conversion):
virtual int write(const void* data, int size);
data - Points to the array from which to write.
size - Number of bytes to write.
Returns - Num bytes actually written.




Variable Member Descriptions: