#include <PME.h>
Public Member Functions | |
| Controller (string remote_net_addr, unsigned short remote_port) | |
| Controller () | |
| ~Controller () | |
| void | set_remote_addr_and_port (string addr, unsigned short port) |
| void | set_data (controller_str &str) |
| void | get_data (CPoint &p, CPoint &v, GloveState &glove_st) |
| void | get_position (CPoint &p) |
| void * | remote_read_func (void *data) |
| void | start_reader_thread () |
| void | get_remote_data () |
Protected Attributes | |
| CPoint | _position |
| CPoint | _velocity |
| GloveState | glove_state |
| csl::SynchPthread | sync |
| csl::ThreadPthread | thread |
| unsigned short | foreign_port |
| string | foreign_net_address |
| UDPSocket | sock |
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5-20051010