![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
InputSource Socket Class
Contained in: global
Derived from:
CL_InputSource
Derived by:
none
Group: Network (Sockets)
#include <ClanLib/network.h>
public function member index: |
||
Construction: |
||
CL_InputSource_Socket | (const CL_Socket& socket); | |
virtual | ~CL_InputSource_Socket | (); |
Attributes: |
||
virtual int | tell | () const; |
virtual int | size | () const; |
Operations: |
||
virtual int | read | (void* data, int size); |
virtual void | open | (); |
virtual void | close | (); |
virtual CL_InputSource* | clone | () const; |
virtual void | seek | (int pos, SeekEnum seek_type); |
virtual void | push_position | (); |
virtual void | pop_position | (); |
private function member index: |
||
Implementation: |
||
CL_InputSource_Socket | (); | |
Returns - The copy of the input source.
data - Points to an array where the read data is stored.
size - Number of bytes to read.
Returns - Num bytes actually read.
pos - Position relative to 'seek_type'.
seek_type - Defines what the 'pos' is relative to. Can be either seek_set, seek_cur og seek_end.
Returns - Size of the input source.
Returns - Current position in input source.