18 #ifndef __frameserver_h__
19 #define __frameserver_h__
24 #include "UdpConnection.h"
26 #include "BcuLib/BcuCommon.h"
28 #define FRAME_READY_FIFO_CH 0
42 frameserver(
int argc,
char **argv)
throw (AOException);
43 frameserver(std::string name,
const std::string &conffile)
throw (AOException);
48 std::string pingFifoPath;
65 bool attached_to_shmem;
75 BYTE sendBuff[Constants::MAX_ETH_PACKET_SIZE];
80 int _MAX_TDP_PACKET_SIZE;
81 int _MAX_ETH_PACKET_SIZE;
84 int setPingFifoPath(std::string &);
85 std::string getPingFifoPath(){
return pingFifoPath;}
87 int setRemoteIp(std::string &);
88 std::string getRemoteIp(){
return remoteIP;}
90 int setLocalPort(
int);
91 int getLocalPort(){
return localPort;}
93 int setRemotePort(
int);
94 int getRemotePort(){
return remotePort;}
101 int set_shmem_key(
int sk);
102 int get_shmem_key(){
return shmem_key;}
120 void frame_ready_handler(
int signum, siginfo_t *siginf,
void *ucont);
123 int frame_ready(fifo_channel *fc);
127 #endif //__frameserver_h__
virtual int Run()
The application main loop, to be re-implemented in derived classes.
int packetsPerFrame
No of UDP messages per frame.
int send_frame()
Send the frame, packet by packet, as if we're a BCU 47.
The standalone VisAO application, does not interface with the AO Supervisor.
Declarations for the standalone VisAO application.
sharedim_stackS * sis
Manages a VisAO shared memory image stack.
a class for serving frames over UDP.
int frameSizeDw
Size of the frame in DWORD.
int behind
The number of frames currently behind.
int total_skipped
The total number of frames skipped.
int calc_packetsPerFrame(int frameSizeBytes, int bitsPerPix)
Calculate frameSizeDW and packetsPerFrame.
sharedimS sim
The sharedim structure retreived from the stack.
The namespace of VisAO software.