#include <overhead_vision_wifi.h>
Inheritance diagram for OverheadVisionClientWifi:

Public Member Functions | |
| OverheadVisionClientWifi (int patternNumber=0, const char *ip=DEFAULT_SERVER, u_short serverPort=SRV_HC_CON_PORT, u_short udpPort=UDP_PORT) | |
| Short Description. | |
| virtual | ~OverheadVisionClientWifi (void) |
| Short Description. | |
| virtual int | recv (void) |
| Reads vision packets from the server from the vision server. | |
| virtual int | recvNoWait (void) |
| Reads vision packets from the server from the vision server. | |
Protected Member Functions | |
| int | udpRecv (int flags) |
| Short Description. | |
| int | tcpRecv (int flags) |
| Short Description. | |
| int | recvInternal (struct timeval *selectTO, int recv_flags) |
| Internal function for recieving data from the vision server from either the udp or tcp socket. | |
Protected Attributes | |
| SOCKET | tcpSock |
| SOCKET | udpSock |
| SOCKET | maxFD |
| srv_packet_t | tcpBuf |
| int | tcpLen |
Static Protected Attributes | |
| static const u_short | UDP_PORT = 7645 |
| static const u_short | SRV_HC_CON_PORT = 1476 |
| static const char * | DEFAULT_SERVER = "192.168.0.100" |
Private Member Functions | |
| OverheadVisionClientWifi (const OverheadVisionClientWifi &o) | |
| const OverheadVisionClientWifi & | operator= (const OverheadVisionClientWifi &o) |
Definition at line 9 of file overhead_vision_wifi.h.
|
||||||||||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 250 of file overhead_vision_wifi.cpp. References Bind_server(), Connect(), maxFD, Sockaddr_url(), SocketTCP(), SocketUDP(), SRV_HC_CON_PORT, tcpSock, and udpSock. |
|
|
Short Description. Long Description if necessary.
Definition at line 294 of file overhead_vision_wifi.cpp. References DISCONN_REQ, tcpSock, hc_feedback_t::type, and udpSock. |
|
|
Definition at line 57 of file overhead_vision_wifi.h. |
|
|
Definition at line 58 of file overhead_vision_wifi.h. |
|
|
Reads vision packets from the server from the vision server. This function will block waiting for data from the network, but may return 0 if data is recieved. but it doesn't contain an entire packets worth of data.
Implements OverheadVisionClient. Definition at line 234 of file overhead_vision_wifi.cpp. References recvInternal(). |
|
||||||||||||
|
Internal function for recieving data from the vision server from either the udp or tcp socket. This function is for internal use, it can be blocking or non-blocking
Definition at line 167 of file overhead_vision_wifi.cpp. References maxFD, tcpRecv(), tcpSock, udpRecv(), and udpSock. Referenced by recv(), and recvNoWait(). |
|
|
Reads vision packets from the server from the vision server. This function won't block waiting for data.
Implements OverheadVisionClient. Definition at line 213 of file overhead_vision_wifi.cpp. References recvInternal(). |
|
|
Short Description. Long Description if necessary.
Definition at line 107 of file overhead_vision_wifi.cpp. References srv_packet_t::header, srv_pkt_header_t::packet_size, srv_pkt_header_t::packet_type, OverheadVisionClient::packetQ, recv(), tcpBuf, tcpLen, tcpSock, and OverheadVisionClient::VISION_DATA. Referenced by recvInternal(). |
|
|
Short Description. Long Description if necessary.
Definition at line 60 of file overhead_vision_wifi.cpp. References OverheadVisionClient::packetQ, recv(), udpSock, and OverheadVisionClient::VISION_DATA. Referenced by recvInternal(). |
|
|
Definition at line 19 of file overhead_vision_wifi.h. |
|
|
Definition at line 48 of file overhead_vision_wifi.h. Referenced by OverheadVisionClientWifi(), and recvInternal(). |
|
|
Definition at line 16 of file overhead_vision_wifi.h. Referenced by OverheadVisionClientWifi(). |
|
|
Definition at line 51 of file overhead_vision_wifi.h. Referenced by tcpRecv(). |
|
|
Definition at line 52 of file overhead_vision_wifi.h. Referenced by tcpRecv(). |
|
|
Definition at line 46 of file overhead_vision_wifi.h. Referenced by OverheadVisionClientWifi(), recvInternal(), tcpRecv(), and ~OverheadVisionClientWifi(). |
|
|
Definition at line 13 of file overhead_vision_wifi.h. |
|
|
Definition at line 47 of file overhead_vision_wifi.h. Referenced by OverheadVisionClientWifi(), recvInternal(), udpRecv(), and ~OverheadVisionClientWifi(). |
1.4.4