Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <Wireless.h>
For more information on using wireless, please read the following tutorials:
Definition at line 26 of file Wireless.h.
Public Member Functions | |
Wireless () | |
constructor - only one wireless object is required per Aperios process. | |
~Wireless () | |
destructor | |
int | listen (int sock, int port) |
The socket waits for incoming connections. | |
int | connect (int sock, const char *ipaddr, int port) |
The socket tries to connect to a specific. | |
void | setReceiver (int sock, int(*rcvcbckfn)(char *, int)) |
sets receiver callback for a socket | |
void | setDaemon (int sock, bool val=true) |
sets the socket to be a daemon (recycles on close) | |
void | close (int sock) |
closes and destroys non server, daemon sockets | |
Socket * | socket (TransportType_t ttype) |
Creates a new socket. | |
Socket * | socket (TransportType_t ttype, int recvsize, int sendsize) |
bool | isConnected (int sock) |
utility function that you can use if you're curious about the state of the socket. | |
bool | isReady (int sock) |
utility function that you can use if you're curious about the state of the socket. | |
bool | hasData (int sock) |
utility function that you can use if you're curious about the state of the socket. | |
void | setReceiver (Socket &sobj, int(*rcvcbckfn)(char *, int)) |
helper function for the function with the same name that takes a socket descriptor (int) | |
void | setReceiver (Socket *sobj, int(*rcvcbckfn)(char *, int)) |
helper function for the function with the same name that takes a socket descriptor (int) | |
void | setDaemon (Socket &sobj, bool val=true) |
helper function for the function with the same name that takes a socket descriptor (int) | |
void | setDaemon (Socket *sobj, bool val=true) |
helper function for the function with the same name that takes a socket descriptor (int) | |
int | listen (Socket &sobj, int port) |
helper function for the function with the same name that takes a socket descriptor (int) | |
int | listen (Socket *sobj, int port) |
helper function for the function with the same name that takes a socket descriptor (int) | |
int | connect (Socket &sobj, const char *ipaddr, int port) |
helper function for the function with the same name that takes a socket descriptor (int) | |
int | connect (Socket *sobj, const char *ipaddr, int port) |
helper function for the function with the same name that takes a socket descriptor (int) | |
void | close (Socket &sobj) |
helper function for the function with the same name that takes a socket descriptor (int) | |
void | close (Socket *sobj) |
helper function for the function with the same name that takes a socket descriptor (int) | |
void | receive (int sock, int(*rcvcbckfn)(char *, int)) |
function for internal and Socket use. You should not call this | |
void | receive (int sock) |
function for internal and Socket use. You should not call this | |
void | send (int sock) |
void | blockingSend (int sock) |
void | ListenCont (void *msg) |
void | BindCont (void *msg) |
void | ConnectCont (void *msg) |
void | SendCont (void *msg) |
void | ReceiveCont (void *msg) |
void | CloseCont (void *msg) |
Static Public Attributes | |
const int | WIRELESS_MAX_SOCKETS = 100 |
Maximum number of sockets which can be created. | |
const int | WIRELESS_DEF_RECV_SIZE = 1024 |
Default number of bytes to use for receive buffers (overridden by value passed to socket()). | |
const int | WIRELESS_DEF_SEND_SIZE = 1024 |
Default number of bytes to use for send buffers (overridden by value passed to socket()). | |
Private Member Functions | |
Wireless (const Wireless &) | |
don't call | |
Wireless & | operator= (const Wireless &) |
don't call | |
Private Attributes | |
antStackRef | ipstackRef |
private ALOKL_TODO | |
OID | myOID |
private ALOKL_TODO | |
Socket * | sockets [WIRELESS_MAX_SOCKETS] |
private ALOKL_TODO | |
list< int > | freeSockets |
private ALOKL_TODO |
|
constructor - only one wireless object is required per Aperios process. MMCombo already creates one. The (global) instance is called wireless, and you can access it by including Wireless/Wireless.h (this file) in your code Definition at line 17 of file Wireless.cc. |
|
destructor
Definition at line 30 of file Wireless.cc. |
|
don't call
|
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 196 of file Wireless.cc. Referenced by MMCombo::BindCont(). |
|
Definition at line 249 of file Wireless.cc. Referenced by Socket::flush(). |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 99 of file Wireless.h. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 98 of file Wireless.h. |
|
closes and destroys non server, daemon sockets
Definition at line 329 of file Wireless.cc. Referenced by close(), WMMonitorBehavior::DoStop(), WalkControllerBehavior::DoStop(), SegCamBehavior::DoStop(), RawCamBehavior::DoStop(), MMCombo::DoStop(), HeadPointControllerBehavior::DoStop(), EStopControllerBehavior::DoStop(), Controller::DoStop(), Aibo3DControllerBehavior::DoStop(), ReceiveCont(), and SendCont(). |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 353 of file Wireless.cc. Referenced by MMCombo::CloseCont(). |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 96 of file Wireless.h. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 94 of file Wireless.h. |
|
The socket tries to connect to a specific.
Definition at line 130 of file Wireless.cc. Referenced by connect(). |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 181 of file Wireless.cc. Referenced by MMCombo::ConnectCont(). |
|
utility function that you can use if you're curious about the state of the socket. You shouldn't need to use it, since asking sockets for write and read buffers does the necessary sanity checks Definition at line 81 of file Wireless.h. |
|
utility function that you can use if you're curious about the state of the socket. You shouldn't need to use it, since asking sockets for write and read buffers does the necessary sanity checks Definition at line 78 of file Wireless.h. Referenced by Controller::console_callback(), StringInputControl::doReadStdIn(), ControlBase::doReadStdIn(), SegCamBehavior::processEvent(), RawCamBehavior::processEvent(), WalkCalibration::refresh(), ValueEditControl< T >::refresh(), ControlBase::refresh(), and BatteryCheckControl::refresh(). |
|
utility function that you can use if you're curious about the state of the socket. You shouldn't need to use it, since asking sockets for write and read buffers does the necessary sanity checks Definition at line 80 of file Wireless.h. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 93 of file Wireless.h. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 92 of file Wireless.h. |
|
The socket waits for incoming connections. That is, it acts like a server. If a connection is established and later broken, it resumes waiting for new connections. Definition at line 78 of file Wireless.cc. Referenced by CloseCont(), WMMonitorBehavior::DoStart(), WalkControllerBehavior::DoStart(), SegCamBehavior::DoStart(), RawCamBehavior::DoStart(), MMCombo::DoStart(), HeadPointControllerBehavior::DoStart(), EStopControllerBehavior::DoStart(), Controller::DoStart(), Aibo3DControllerBehavior::DoStart(), listen(), and WorldStateSerializerBehavior::WorldStateSerializerBehavior(). |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 165 of file Wireless.cc. Referenced by MMCombo::ListenCont(). |
|
don't call
|
|
function for internal and Socket use. You should not call this
Definition at line 276 of file Wireless.cc. |
|
function for internal and Socket use. You should not call this
Definition at line 293 of file Wireless.cc. Referenced by ConnectCont(), ListenCont(), and ReceiveCont(). |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 311 of file Wireless.cc. Referenced by MMCombo::ReceiveCont(). |
|
function called by the Socket objects to actually write data to the network. You should not call this. Definition at line 210 of file Wireless.cc. Referenced by Socket::flush(). |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 229 of file Wireless.cc. Referenced by MMCombo::SendCont(). |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 91 of file Wireless.h. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 90 of file Wireless.h. |
|
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 88 of file Wireless.h. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 86 of file Wireless.h. |
|
sets receiver callback for a socket
Definition at line 268 of file Wireless.cc. Referenced by WMMonitorBehavior::DoStart(), WalkControllerBehavior::DoStart(), StartupBehavior::DoStart(), HeadPointControllerBehavior::DoStart(), EStopControllerBehavior::DoStart(), Controller::DoStart(), Aibo3DControllerBehavior::DoStart(), and setReceiver(). |
|
Definition at line 40 of file Wireless.cc. |
|
Creates a new socket.
Definition at line 35 of file Wireless.cc. Referenced by MMCombo::DoInit(), WMMonitorBehavior::DoStart(), WalkControllerBehavior::DoStart(), SegCamBehavior::DoStart(), RawCamBehavior::DoStart(), HeadPointControllerBehavior::DoStart(), EStopControllerBehavior::DoStart(), Controller::DoStart(), Aibo3DControllerBehavior::DoStart(), and WorldStateSerializerBehavior::WorldStateSerializerBehavior(). |
|
private ALOKL_TODO
Definition at line 133 of file Wireless.h. Referenced by CloseCont(), socket(), and Wireless(). |
|
private ALOKL_TODO
Definition at line 130 of file Wireless.h. Referenced by blockingSend(), close(), connect(), listen(), receive(), send(), socket(), and Wireless(). |
|
private ALOKL_TODO
Definition at line 131 of file Wireless.h. Referenced by close(), connect(), listen(), receive(), send(), and Wireless(). |
|
private ALOKL_TODO
Definition at line 132 of file Wireless.h. Referenced by BindCont(), blockingSend(), close(), CloseCont(), connect(), ConnectCont(), hasData(), isConnected(), isReady(), listen(), ListenCont(), receive(), ReceiveCont(), send(), SendCont(), setDaemon(), setReceiver(), socket(), and Wireless(). |
|
Default number of bytes to use for receive buffers (overridden by value passed to socket()).
Definition at line 32 of file Wireless.h. Referenced by MMCombo::DoInit(), and socket(). |
|
Default number of bytes to use for send buffers (overridden by value passed to socket()).
Definition at line 35 of file Wireless.h. Referenced by MMCombo::DoInit(), and socket(). |
|
Maximum number of sockets which can be created.
Definition at line 29 of file Wireless.h. Referenced by blockingSend(), connect(), listen(), receive(), send(), setReceiver(), and Wireless(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:33 2004 by Doxygen 1.3.4 |