#include <FileCast.h>
Inheritance diagram for FileCast:
Definition at line 60 of file FileCast.h.
Public Member Functions | |
FileCast (FileSink *targetFile) throw ( Exception ) | |
Constructor. | |
FileCast (const FileCast &cs) throw ( Exception ) | |
Copy constructor. | |
virtual | ~FileCast (void) throw ( Exception ) |
Destructor. | |
virtual FileCast & | operator= (const FileCast &cs) throw ( Exception ) |
Assignment operator. | |
virtual bool | open (void) throw ( Exception ) |
Open the FileCast. | |
virtual bool | isOpen (void) const throw () |
Check if the FileCast is open. | |
virtual bool | canWrite (unsigned int sec, unsigned int usec) throw ( Exception ) |
Check if the FileCast is ready to accept data. | |
virtual unsigned int | write (const void *buf, unsigned int len) throw ( Exception ) |
Write data to the FileCast. | |
virtual void | flush (void) throw ( Exception ) |
Flush all data that was written to the FileCast to the server. | |
virtual void | close (void) throw ( Exception ) |
Close the FileCast. | |
Protected Member Functions | |
FileCast (void) throw ( Exception ) | |
Default constructor. | |
virtual bool | sendLogin (void) throw ( Exception ) |
Log in to the server using the socket avialable. |
|
Default constructor. Always throws an Exception.
Definition at line 104 of file FileCast.h. |
|
Constructor.
Definition at line 132 of file FileCast.h. |
|
Copy constructor.
Definition at line 145 of file FileCast.h. |
|
Destructor.
Definition at line 156 of file FileCast.h. |
|
Check if the FileCast is ready to accept data. Blocks until the specified time for data to be available.
Reimplemented from CastSink. Definition at line 209 of file FileCast.h. References FileSink::canWrite(). |
|
Close the FileCast.
Reimplemented from CastSink. Definition at line 247 of file FileCast.h. References FileSink::close(). |
|
Flush all data that was written to the FileCast to the server.
Reimplemented from CastSink. Definition at line 236 of file FileCast.h. References FileSink::flush(). |
|
Check if the FileCast is open.
Reimplemented from CastSink. Definition at line 193 of file FileCast.h. References FileSink::isOpen(). Referenced by open(). |
|
Open the FileCast.
Reimplemented from CastSink. Definition at line 76 of file FileCast.cpp. References isOpen(). |
|
Assignment operator.
Definition at line 169 of file FileCast.h. |
|
Log in to the server using the socket avialable. No need to log in to a file.
Implements CastSink. Definition at line 117 of file FileCast.h. |
|
Write data to the FileCast.
Reimplemented from CastSink. Definition at line 224 of file FileCast.h. References FileSink::write(). |