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
155 #define MTU_SIZE 1500
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>
221 RM_Error_Type init();
223 RM_Error_Type write_mcast(
const void *data,
int length);
225 RM_Error_Type read_mcast(
void *dest,
int length);
227 RM_Error_Type setDebugLevel(
int lvl);
228 RM_Error_Type setLoopback(
bool lb);
229 RM_Error_Type setTxRate(
int Mbps);
230 RM_Error_Type setTimeout(
int t);
231 RM_Error_Type setRetryTimeout(
int u);
232 RM_Error_Type setNumClients(
int n);
233 RM_Error_Type setTxCacheBounds(
unsigned int bytes,
int min,
int max);
234 RM_Error_Type setBackoffFactor(
double factor);
236 RM_Error_Type setSockBufferSize(
int bytes);
237 RM_Error_Type setInterface(
const char *iface);
238 RM_Error_Type setTTL(
int t);
239 RM_Error_Type setBufferSpace(
unsigned int bytes);
240 RM_Error_Type setMTU(
int bytes);
241 RM_Error_Type setBlocksAndParity(
int b,
int p);
242 RM_Error_Type setMaxLength(
int m);
246 RM_Error_Type init_server();
248 RM_Error_Type init_client();
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;
Definition: rel_mcast-old.h:197
#define MCAST_ADDR
Definition: rel_mcast.h:148
Definition: rel_mcast.h:208
#define MCAST_PORT
Definition: rel_mcast.h:149
RM_Error_Type
Error Codes.
Definition: rel_mcast-old.h:201
#define MCAST_IFACE
Definition: rel_mcast.h:150
Definition: rel_mcast.h:209