Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <DummySocket.h>
Inheritance diagram for DummySocket:
This class provides a DummySocket that doesn't really do anything It exists to maintain code readability; while supporting dogs without wireless Of course, since it does nothing, it doesn't need documentation
Definition at line 16 of file DummySocket.h.
Public Member Functions | |
DummySocket (int sockn) | |
constructor | |
virtual | ~DummySocket () |
byte * | getWriteBuffer (int bytesreq) |
void | write (int size) |
writes the specified number of bytes starting at the pointer returned. | |
int | read () |
Blocking read. | |
byte * | getReadBuffer () |
getReadBuffer is used with blocking read's | |
void | init () |
initialize socket member variables. This is different from the constructor since sockets are reused | |
int | setFlushType (FlushType_t fType) |
Chooses between blocking and non-blocking input, output. | |
void | setTextForward () |
causes this socket to forward output to stdout if it is not connected, call setForward(NULL) to unset | |
void | setForward (DummySocket *forsock) |
sets another socket to send data to if this one is not connected | |
void | setVerbosity (int verbose) |
Picks a level of verbosity for filtering pprintf commands. | |
int | write (const byte *buf, int size) |
int | read (byte *buf, int size) |
Blocking read. | |
int | printf (const char *fmt,...) |
int | vprintf (const char *fmt, va_list al) |
int | pprintf (int vlevel, const char *fmt,...) |
Similar to printf, except it takes an extra first argument. | |
void | flush () |
Friends | |
class | Wireless |
|
constructor
Definition at line 21 of file DummySocket.h. |
|
Definition at line 22 of file DummySocket.h. |
|
All write commands on the socket will implicity call this. You don't need to call it, unless you're implementing your own write Reimplemented from Socket. Definition at line 37 of file DummySocket.h. |
|
getReadBuffer is used with blocking read's The read(void) and getReadBuffer combo eliminates one buffer copy. You don't need to use getReadBuffer with read(byte*, int) Blocking read is currently broken - it will be fixed in the next release
Reimplemented from Socket. Definition at line 26 of file DummySocket.h. |
|
The getWriteBuffer-write(int) combo eliminates one buffer copy. You don't need to use getWriteBuffer with write(byte*, int)
Reimplemented from Socket. Definition at line 23 of file DummySocket.h. |
|
initialize socket member variables. This is different from the constructor since sockets are reused
Reimplemented from Socket. Definition at line 27 of file DummySocket.h. |
|
Similar to printf, except it takes an extra first argument. If vlevel is than or equal to the current verbosity level, the string will be printed else it will be ignored
Reimplemented from Socket. Definition at line 36 of file DummySocket.h. |
|
It's standard stuff. man 3 printf on most systems should give you more information Reimplemented from Socket. Definition at line 34 of file DummySocket.h. |
|
Blocking read. You might want to consider the read(void) and getReadBuffer combo if you call this often Blocking read is currently broken - it will be fixed in the next release
Reimplemented from Socket. Definition at line 33 of file DummySocket.h. |
|
Blocking read. Tries to read upto receive buffer size worth of data from this socket. Blocking read is currently broken - it will be fixed in the next release
Reimplemented from Socket. Definition at line 25 of file DummySocket.h. |
|
Chooses between blocking and non-blocking input, output. This function can only be called when a socket is disconnected, since it is a bad idea to mix blocking and non-blocking input, output. The default for a socket is non-blocking
Reimplemented from Socket. Definition at line 28 of file DummySocket.h. |
|
sets another socket to send data to if this one is not connected
Definition at line 30 of file DummySocket.h. |
|
causes this socket to forward output to stdout if it is not connected, call setForward(NULL) to unset
Reimplemented from Socket. Definition at line 29 of file DummySocket.h. |
|
Picks a level of verbosity for filtering pprintf commands. The higher the verbosity, the more the number of messages printed. This is useful for filtering out non-important messages with very little processor cost. Default is 0.
Reimplemented from Socket. Definition at line 31 of file DummySocket.h. |
|
It's standard stuff. man 3 printf on most systems should give you more information Reimplemented from Socket. Definition at line 35 of file DummySocket.h. |
|
You might want to consider the getWriteBuffer-write(int) combo if you call this often
Reimplemented from Socket. Definition at line 32 of file DummySocket.h. |
|
writes the specified number of bytes starting at the pointer returned. in a (prior) call to getWriteBufer
Reimplemented from Socket. Definition at line 24 of file DummySocket.h. |
|
Reimplemented from Socket. Definition at line 17 of file DummySocket.h. |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:07 2004 by Doxygen 1.3.4 |