148#define MCAST_ADDR "224.223.222.221"
149#define MCAST_PORT 23232
150#define MCAST_IFACE "eth0"
153#define SND_BUFFER_SPACE 1000000
154#define RCV_BUFFER_SPACE 1000000
163#define CACHE_MAX_SIZE 100000000
164#define CACHE_MIN_NUM 1
165#define CACHE_MAX_NUM 128
171#define BACKOFF_FACTOR 0.0
174#define SOCK_BUFFER_SIZE 512000
177#define READ_TIMEOUT_SEC 30
178#define WRITE_TIMEOUT_MSEC 500
179#define RETRY_TIMEOUT 100
182#define MAX_LENGTH 1000000
186#include "protoDefs.h"
187#include "protoDebug.h"
194#include <util/coTypes.h>
250 void waitForVacancy();
253 void waitForRead(
int sec,
int msec,
void *dest,
int length);
255 void printMsg(
int lvl,
const char *msg, ...);
260 const char *mcastAddr;
263 const char *mcastIface;
269 NormInstanceHandle normInstance;
270 NormSessionHandle normSession;
271 NormSessionId normSessionId;
272 NormDescriptor normFD;
281 unsigned int sndBufferSpace;
282 unsigned int rcvBufferSpace;
287 NormSize txCacheSize;
291 double backoffFactor;
301 int writeTimeoutMsec;
#define MCAST_ADDR
Definition: rel_mcast.h:148
#define MCAST_IFACE
Definition: rel_mcast.h:150
#define MCAST_PORT
Definition: rel_mcast.h:149
Definition: ARToolKit.h:33
RM_Error_Type setMaxLength(int m)
RM_Error_Type setInterface(const char *iface)
Rel_Mcast(bool server, int numClients, const char *addr=MCAST_ADDR, int port=MCAST_PORT, const char *interface=MCAST_IFACE)
RM_Error_Type read_mcast(void *dest, int length)
RM_Error_Type setBlocksAndParity(int b, int p)
RM_Error_Type setLoopback(bool lb)
RM_Error_Type setMTU(int bytes)
RM_Error_Type setTimeout(int t)
RM_Error_Type setTTL(int t)
RM_Error_Type setRetryTimeout(int u)
RM_Error_Type setBufferSpace(unsigned int bytes)
Rel_Mcast(int clientNum, const char *addr=MCAST_ADDR, int port=MCAST_PORT, const char *interface=MCAST_IFACE)
RM_Error_Type setTxRate(int Mbps)
RM_Error_Type setDebugLevel(int lvl)
RM_Error_Type
Error Codes.
Definition: rel_mcast-old.h:202
@ RM_READ_ERROR
Definition: rel_mcast-old.h:207
@ RM_SETTING_ERROR
Definition: rel_mcast.h:209
@ RM_OK
no error
Definition: rel_mcast-old.h:203
@ RM_INIT_ERROR
Definition: rel_mcast.h:208
@ RM_WRITE_ERROR
Definition: rel_mcast-old.h:206
RM_Error_Type setTxCacheBounds(unsigned int bytes, int min, int max)
RM_Error_Type write_mcast(const void *data, int length)
RM_Error_Type setSockBufferSize(int bytes)
RM_Error_Type setBackoffFactor(double factor)
RM_Error_Type setNumClients(int n)