diff options
Diffstat (limited to 'lib/network.h')
-rw-r--r-- | lib/network.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/network.h b/lib/network.h index e00dac7..dc7d614 100644 --- a/lib/network.h +++ b/lib/network.h @@ -3,7 +3,7 @@ * network.h * * Wed Nov 3 21:23:14 CET 2004 - * Copyright 2004 Bent Bisballe + * Copyright 2004 Bent Bisballe Nyeng * deva@aasimon.org ****************************************************************************/ @@ -30,6 +30,13 @@ #include "socket.h" #include "package.h" +#include "frame.h" +#include "status.h" + +// Frame recv buffer sizes. +// These should be big enough for every type of frame. +#define VFRAMESZ 720*576*4 +#define AFRAMESZ 48000*2 class Network { public: @@ -43,9 +50,21 @@ public: // Package communication int sendPackage(n_header *h, void* buf, int bufsz); int recvPackage(n_header *h, void* buf, int bufsz); + + // Frame communication + int sendFrame(Frame *frame); + Frame *recvFrame(); + + // Status message communication + int sendStatus(Status *status); + int recvStatus(Status *status); private: Socket *s; + + // Frame recv buffer + char vframe_buf[VFRAMESZ]; + char aframe_buf[AFRAMESZ]; }; #endif/*__NETWORK_H__*/ |