Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
Wireless Class ReferenceTekkotsu wireless class. More...
Detailed DescriptionTekkotsu wireless class. For more information on using wireless, please read the following tutorials: The networking interface needs more documentation. It also needs a cleanup. In the mean time, take a look at the TekkotsuMon objects in Tekkotsu Definition at line 35 of file Wireless.h.
Constructor & Destructor Documentation
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 645 of file Wireless.cc.
destructor Definition at line 667 of file Wireless.cc.
don't call Member Function Documentation
function called by the Socket objects to actually write data to the network. You should not call this. Definition at line 887 of file Wireless.cc. Referenced by Socket::flush().
resets callbackLock to a self-defined lock, which you can request from getCallbackLock() (there's always a callbackLock, the only question is it internally or externally instantiated) Definition at line 1188 of file Wireless.cc.
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 127 of file Wireless.h. Referenced by close().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 126 of file Wireless.h. Referenced by close().
closes and destroys non server, daemon sockets Definition at line 694 of file Wireless.cc. Referenced by SegCam::closeServer(), RegionCam::closeServer(), RawCam::closeServer(), DepthCam::closeServer(), WorldStateSerializerBehavior::doStop(), WMMonitorBehavior::doStop(), HeadController::doStop(), EStopController::doStop(), Controller::doStop(), ArmController::doStop(), getIFAddress(), pollProcess(), RemoteRouter::processData(), EventRouter::processData(), send(), GamepadController::shutdown(), EchoBehavior::teardownNetwork(), EventLogger::~EventLogger(), EventProxy::~EventProxy(), KoduDiscover::~KoduDiscover(), LGmixin::~LGmixin(), RemoteRouter::~RemoteRouter(), and ~Wireless().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 124 of file Wireless.h. Referenced by connect().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 122 of file Wireless.h. Referenced by connect().
The socket tries to connect to a specific. Definition at line 723 of file Wireless.cc. Referenced by RemoteRouter::connect(), EchoBehavior::doEvent(), pollProcess(), EchoBehavior::processCallback(), and KoduDiscover::processEvent().
returns callbackLock Definition at line 166 of file Wireless.h. Referenced by pollProcess(), and setCallbackLock().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 119 of file Wireless.h. Referenced by getDaemon().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 118 of file Wireless.h. Referenced by getDaemon().
sets the socket to be a daemon (recycles on close) Definition at line 86 of file Wireless.h.
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 1192 of file Wireless.cc. Referenced by KoduDiscover::KoduDiscover().
There's probably better ways to implement this... (run through the interface list? How does ifconfig do it?) Definition at line 832 of file Wireless.cc. Referenced by FlashIPAddrBehavior::setupSequence().
private ALOKL_TODO returns the lock to use during all wireless operations (not just callbacks, this is more general) Definition at line 1178 of file Wireless.cc. Referenced by blockingSend(), close(), connect(), Socket::flush(), Socket::getWriteBuffer(), Socket::init(), listen(), pollProcess(), pollSetup(), send(), socket(), Socket::vprintf(), Socket::write(), and ~Wireless().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 128 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 103 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 95 of file Wireless.h. Referenced by SegCam::closeServer(), RawCam::closeServer(), DepthCam::closeServer(), Controller::console_callback(), WorldStateSerializerBehavior::doEvent(), WalkController::doEvent(), SegCam::doEvent(), RegionCam::doEvent(), RawCam::doEvent(), EchoBehavior::doEvent(), DepthCam::doEvent(), ConnectionMadeTrans::doEvent(), StringInputControl::doReadStdIn(), ControlBase::doReadStdIn(), RemoteEvents::isConnected(), EventLogger::logImage(), EventLogger::logMessage(), EventLogger::logWebcam(), EchoBehavior::processCallback(), EventLogger::processEvent(), EventLogger::processStateMachineEvent(), WalkCalibration::refresh(), ValueEditControl< T >::refresh(), ControlBase::refresh(), ConfigurationEditor::NamedEnumerationEditor::refresh(), EchoBehavior::teardownNetwork(), and LGmixin::uploadFile().
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 98 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 102 of file Wireless.h.
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 121 of file Wireless.h. Referenced by listen().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 120 of file Wireless.h. Referenced by listen().
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 if the socket's daemon flag is set. Definition at line 768 of file Wireless.cc. Referenced by close(), WorldStateSerializerBehavior::doStart(), WMMonitorBehavior::doStart(), HeadController::doStart(), EStopController::doStart(), Controller::doStart(), ArmController::doStart(), EventLogger::EventLogger(), EventProxy::EventProxy(), KoduDiscover::KoduDiscover(), LGmixin::LGmixin(), EventRouter::serveRemoteEventRequests(), EchoBehavior::setupNetwork(), SegCam::setupServer(), RegionCam::setupServer(), RawCam::setupServer(), DepthCam::setupServer(), and GamepadController::start().
on non-aperios, process callbacks and state changes as signaled in pollTest() Definition at line 960 of file Wireless.cc.
on non-aperios, set up structures to be checked in pollTest() Definition at line 923 of file Wireless.cc.
on non-aperios, check to see any network communication has occurred
Definition at line 953 of file Wireless.cc.
function for internal and Socket use. You should not call this
function for internal and Socket use. You should not call this
function called by the Socket objects to actually write data to the network. You should not call this. Definition at line 852 of file Wireless.cc. Referenced by blockingSend(), Socket::flush(), and pollProcess().
sets callbackLock Definition at line 1183 of file Wireless.cc.
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 117 of file Wireless.h. Referenced by setDaemon().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 116 of file Wireless.h. Referenced by setDaemon().
sets the socket to be a daemon (recycles on close) Definition at line 84 of file Wireless.h. Referenced by SegCam::closeServer(), RegionCam::closeServer(), RawCam::closeServer(), DepthCam::closeServer(), WorldStateSerializerBehavior::doStart(), WMMonitorBehavior::doStart(), HeadController::doStart(), EStopController::doStart(), Controller::doStart(), ArmController::doStart(), WorldStateSerializerBehavior::doStop(), WMMonitorBehavior::doStop(), HeadController::doStop(), EStopController::doStop(), Controller::doStop(), ArmController::doStop(), EventLogger::EventLogger(), EventProxy::EventProxy(), LGmixin::LGmixin(), EventRouter::serveRemoteEventRequests(), EchoBehavior::setupNetwork(), SegCam::setupServer(), RegionCam::setupServer(), RawCam::setupServer(), DepthCam::setupServer(), GamepadController::shutdown(), GamepadController::start(), EchoBehavior::teardownNetwork(), and EventLogger::~EventLogger().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 114 of file Wireless.h. Referenced by setReceiver().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 112 of file Wireless.h. Referenced by setReceiver().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 110 of file Wireless.h. Referenced by setReceiver().
helper function for the function with the same name that takes a socket descriptor (int) Definition at line 108 of file Wireless.h. Referenced by setReceiver().
sets receiver callback for a socket, this version requiring the SocketListener interface (more powerful, as this lets us tell connections apart) Definition at line 690 of file Wireless.cc.
sets receiver callback for a socket Definition at line 686 of file Wireless.cc. Referenced by RemoteRouter::connect(), EchoBehavior::doEvent(), WMMonitorBehavior::doStart(), HeadController::doStart(), EStopController::doStart(), Controller::doStart(), ArmController::doStart(), EventLogger::EventLogger(), EventProxy::EventProxy(), KoduDiscover::KoduDiscover(), EventRouter::serveRemoteEventRequests(), EchoBehavior::setupNetwork(), SegCam::setupServer(), RawCam::setupServer(), DepthCam::setupServer(), GamepadController::start(), and KoduDiscover::~KoduDiscover().
Definition at line 804 of file Wireless.cc.
Creates a new socket.
Definition at line 801 of file Wireless.cc. Referenced by RemoteRouter::connect(), EchoBehavior::doEvent(), WorldStateSerializerBehavior::doStart(), WMMonitorBehavior::doStart(), HeadController::doStart(), EStopController::doStart(), Controller::doStart(), ArmController::doStart(), EventLogger::EventLogger(), EventProxy::EventProxy(), getIFAddress(), KoduDiscover::KoduDiscover(), LGmixin::LGmixin(), EventRouter::serveRemoteEventRequests(), EchoBehavior::setupNetwork(), SegCam::setupServer(), RegionCam::setupServer(), RawCam::setupServer(), DepthCam::setupServer(), and GamepadController::start().
writes del on interruptCtl, breaking out of a pending pollTest() and thus giving an opportunity to change the contents of the FD sets being used;
Definition at line 1174 of file Wireless.cc. Friends And Related Function Documentation
Definition at line 170 of file Wireless.h. Referenced by socket(). Member Data Documentation
this lock will be aquired during any callbacks which might occur during pollProcess() Definition at line 180 of file Wireless.h. Referenced by clearCallbackLock(), getCallbackLock(), and setCallbackLock().
a set of file descriptors which should be polled for errors; set up by pollSetup(), watched (blocking) by pollTest(), and processed by pollProcess() Definition at line 185 of file Wireless.h. Referenced by pollProcess(), pollSetup(), pollTest(), and Wireless().
maximum file descriptor value in the rfds, wfds, efds fd_set's Definition at line 186 of file Wireless.h. Referenced by pollSetup(), pollTest(), and Wireless().
this lock will be aquired during any callbacks which might occur during pollProcess() Definition at line 189 of file Wireless.h. Referenced by close(), socket(), Wireless(), and ~Wireless().
a socket, connected to interruptCtl, which allows pollTest() to be interrupted if new sockets need to be polled Definition at line 181 of file Wireless.h. Referenced by pollProcess(), pollSetup(), Wireless(), and ~Wireless().
a socket, connected to interruptChk, which allows pollTest() to be interrupted if new sockets need to be polled Definition at line 182 of file Wireless.h. Referenced by wakeup(), Wireless(), and ~Wireless().
the maximum number of connections which can be queued when listening Definition at line 171 of file Wireless.h. Referenced by listen().
a set of file descriptors which should be polled for readable data; set up by pollSetup(), watched (blocking) by pollTest(), and processed by pollProcess() Definition at line 183 of file Wireless.h. Referenced by pollProcess(), pollSetup(), pollTest(), and Wireless().
this lock will be aquired during any callbacks which might occur during pollProcess() Definition at line 188 of file Wireless.h. Referenced by blockingSend(), close(), connect(), getDaemon(), hasData(), isConnected(), isError(), isReady(), listen(), pollProcess(), pollSetup(), send(), setDaemon(), setReceiver(), socket(), Wireless(), and ~Wireless().
this lock will be aquired during any callbacks which might occur during pollProcess() Definition at line 190 of file Wireless.h. Referenced by close(), pollProcess(), pollSetup(), socket(), and ~Wireless().
set to true at modifcation of usedSockets, cleared prior to callbacks so we can tell if callback invalidates active iterators Definition at line 191 of file Wireless.h. Referenced by close(), pollProcess(), socket(), and ~Wireless().
a set of file descriptors which should be polled for write-complete; set up by pollSetup(), watched (blocking) by pollTest(), and processed by pollProcess() Definition at line 184 of file Wireless.h. Referenced by pollProcess(), pollSetup(), pollTest(), and Wireless().
Default number of bytes to use for receive buffers (overridden by value passed to socket()). Definition at line 41 of file Wireless.h. Referenced by socket().
Default number of bytes to use for send buffers (overridden by value passed to socket()). Definition at line 44 of file Wireless.h. Referenced by socket().
Maximum number of sockets which can be created. Definition at line 38 of file Wireless.h. Referenced by blockingSend(), close(), connect(), listen(), send(), and Wireless(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:18 2016 by Doxygen 1.6.3 |