Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <Wireless.h>
For more information on using wireless, please read the following tutorials:
Definition at line 23 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 | close (int sock) |
closes a socket | |
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) | |
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 | |
int | sock_num |
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. References ipstackRef, myOID, sockets, and WIRELESS_MAX_SOCKETS. |
|
destructor
Definition at line 28 of file Wireless.cc. |
|
don't call
|
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 191 of file Wireless.cc. References SocketNS::CONNECTION_CONNECTED, SocketNS::CONNECTION_ERROR, sockets, and Socket::state. |
|
function called by the Socket objects to actually write data to the network. You should not call this. Definition at line 239 of file Wireless.cc. References SocketNS::CONNECTION_CONNECTED, ipstackRef, Socket::sendSize, sock_num, sockets, Socket::state, and Socket::tx. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 92 of file Wireless.h. References close(), and Socket::sock. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 91 of file Wireless.h. References close(), and Socket::sock. |
|
closes a socket
Definition at line 319 of file Wireless.cc. References SocketNS::CONNECTION_CLOSED, SocketNS::CONNECTION_CLOSING, ipstackRef, myOID, sockets, and Socket::state. |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 334 of file Wireless.cc. References SocketNS::CONNECTION_CLOSED, listen(), Socket::server_port, sockets, and Socket::state. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 89 of file Wireless.h. References connect(), and Socket::sock. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 87 of file Wireless.h. References connect(), and Socket::sock. |
|
The socket tries to connect to a specific.
Definition at line 126 of file Wireless.cc. References SocketNS::CONNECTION_CLOSED, SocketNS::CONNECTION_CONNECTING, Socket::endpoint, Socket::init(), ipstackRef, myOID, SocketNS::SOCK_DGRAM, sock_num, SocketNS::SOCK_STREAM, sockets, Socket::state, and Socket::trType. |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 177 of file Wireless.cc. References SocketNS::CONNECTION_CONNECTED, SocketNS::CONNECTION_ERROR, sockets, and Socket::state. |
|
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 76 of file Wireless.h. References Socket::rx, and sockets. |
|
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 73 of file Wireless.h. References SocketNS::CONNECTION_CONNECTED, sockets, and Socket::state. |
|
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 75 of file Wireless.h. References sockets, and Socket::tx. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 86 of file Wireless.h. References listen(), and Socket::sock. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 85 of file Wireless.h. References listen(), and Socket::sock. |
|
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 74 of file Wireless.cc. References SocketNS::CONNECTION_CLOSED, SocketNS::CONNECTION_LISTENING, Socket::endpoint, Socket::init(), ipstackRef, myOID, Socket::server_port, SocketNS::SOCK_DGRAM, sock_num, SocketNS::SOCK_STREAM, sockets, Socket::state, and Socket::trType. |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 161 of file Wireless.cc. References SocketNS::CONNECTION_CONNECTED, SocketNS::CONNECTION_ERROR, Socket::rcvcbckfn, receive(), sockets, and Socket::state. |
|
don't call
|
|
function for internal and Socket use. You should not call this
Definition at line 266 of file Wireless.cc. References SocketNS::CONNECTION_CONNECTED, ipstackRef, myOID, Socket::rx, sock_num, sockets, and Socket::state. |
|
function for internal and Socket use. You should not call this
Definition at line 283 of file Wireless.cc. References SocketNS::CONNECTION_CONNECTED, ipstackRef, myOID, Socket::rcvcbckfn, Socket::rx, sock_num, sockets, and Socket::state. |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 301 of file Wireless.cc. References close(), SocketNS::CONNECTION_ERROR, Socket::rcvcbckfn, receive(), Socket::recvSize, sockets, and Socket::state. |
|
function called by the Socket objects to actually write data to the network. You should not call this. Definition at line 205 of file Wireless.cc. References SocketNS::CONNECTION_CONNECTED, ipstackRef, myOID, Socket::sendSize, sock_num, sockets, Socket::state, and Socket::tx. |
|
callback function for communicating with Aperios Networking Toolkit. You should not call this. Definition at line 224 of file Wireless.cc. References close(), SocketNS::CONNECTION_ERROR, Socket::flush(), sockets, Socket::state, and Socket::tx. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 83 of file Wireless.h. References setReceiver(), and Socket::sock. |
|
helper function for the function with the same name that takes a socket descriptor (int)
Definition at line 81 of file Wireless.h. References setReceiver(), and Socket::sock. |
|
sets receiver callback for a socket
Definition at line 258 of file Wireless.cc. References Socket::rcvcbckfn, sock_num, and sockets. |
|
Definition at line 38 of file Wireless.cc. References ipstackRef, sock_num, sockets, and WIRELESS_MAX_SOCKETS. |
|
Creates a new socket.
Definition at line 33 of file Wireless.cc. References WIRELESS_DEF_RECV_SIZE, and WIRELESS_DEF_SEND_SIZE. |
|
private ALOKL_TODO
Definition at line 123 of file Wireless.h. |
|
private ALOKL_TODO
Definition at line 124 of file Wireless.h. |
|
private ALOKL_TODO
Definition at line 126 of file Wireless.h. |
|
private ALOKL_TODO
Definition at line 125 of file Wireless.h. |
|
Default number of bytes to use for receive buffers (overridden by value passed to socket()).
Definition at line 29 of file Wireless.h. |
|
Default number of bytes to use for send buffers (overridden by value passed to socket()).
Definition at line 32 of file Wireless.h. |
|
Maximum number of sockets which can be created.
Definition at line 26 of file Wireless.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:09:15 2003 by Doxygen 1.3.2 |