From 49265541974282f3346c9dc7de2365858f9fcb4d Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 12 Aug 2006 15:00:40 +0000 Subject: Added timecode and fixed the sending and receiving of frames through the network. --- lib/network.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'lib/network.h') 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__*/ -- cgit v1.2.3