25 #include <util/coTypes.h>
50 #define msghdr _WSAMSG
52 #define msg_namelen namelen
53 #define msg_iov lpBuffers
54 #define msg_iovlen dwBufferCount
55 #define msg_control Control
56 #define msg_flags dwFlags
57 #define recvmsg WSARecvMsg
58 #define sendmsg WSASend
64 #include <sys/socket.h>
65 #include <sys/ioctl.h>
67 #include <netinet/in.h>
68 #include <arpa/inet.h>
80 #define RM_TRACE(DBG_LVL, ACT_LVL, STRING) \
82 if (ACT_LVL >= DBG_LVL) \
83 std::cerr << STRING << std::endl; \
86 #define RM_ERRNO(DBG_LVL, ACT_LVL, STRING) \
88 if (ACT_LVL >= DBG_LVL) \
89 printErrorMessage(STRING); \
212 Rel_Mcast(
int portnumber,
int number_clients,
213 const char *addr =
"224.223.222.221",
const char *interfaceName = 0);
214 Rel_Mcast(
int portnumber,
const char *addr =
"224.223.222.221",
215 const char *interfaceName = 0);
217 RM_Error_Type init();
218 RM_Error_Type write_mcast(
const void *,
int,
bool);
219 RM_Error_Type read_mcast(
void *,
int,
bool);
221 void set_sock_buffsize(
int sbs);
222 void set_debuglevel(
int);
223 void set_loopback(
uchar);
225 void set_readtimeout(
int);
226 void set_msg_buffer(
int);
227 void set_retry_counter(
int);
230 RM_Error_Type init_server();
231 RM_Error_Type init_client();
232 int synchronize(
uint &);
233 void printErrorMessage(
const char *prefix);
234 int readable_timeo();
236 int write_msg(
const struct msghdr *,
int);
237 int read_msg(
struct msghdr *,
int);
239 struct sockaddr_in host_addr;
241 socklen_t host_addrlen;
248 const char *mcast_addr;
unsigned long ulong
abbreviation for unsigned long
Definition: rel_mcast-old.h:78
Definition: rel_mcast-old.h:204
Definition: rel_mcast-old.h:197
unsigned int uint
abbreviation for unsigned int
Definition: rel_mcast-old.h:77
Definition: rel_mcast-old.h:205
Definition: rel_mcast-old.h:207
RM_Error_Type
Error Codes.
Definition: rel_mcast-old.h:201
Definition: rel_mcast-old.h:208
no error
Definition: rel_mcast-old.h:203
unsigned char uchar
abbreviation for unsigned char
Definition: rel_mcast-old.h:75
unsigned short ushort
abbreviation for unsigned short
Definition: rel_mcast-old.h:76
Definition: rel_mcast-old.h:206