Logo Search packages:      
Sourcecode: udpcast version File versions  Download package

participants.h

#ifndef PARTICIPANTS_H
#define PARTICIPANTS_H

#define MAX_CLIENTS 1024

#include <sys/socket.h>

typedef struct participantsDb *participantsDb_t;

#define isParticipantValid udpc_isParticipantValid
#define removeParticipant udpc_removeParticipant
#define lookupParticipant udpc_lookupParticipant
#define nrParticipants udpc_nrParticipants
#define addParticipant udpc_addParticipant
#define makeParticipantsDb udpc_makeParticipantsDb
#define getParticipantCapabilities udpc_getParticipantCapabilities
#define getParticipantRcvBuf udpc_getParticipantRcvBuf
#define getParticipantIp udpc_getParticipantIp
#define printNotSet udpc_printNotSet
#define printSet udpc_printSet

int udpc_isParticipantValid(participantsDb_t ,int slot);
int udpc_removeParticipant(participantsDb_t, int slot);
int udpc_lookupParticipant(participantsDb_t, struct sockaddr *addr);
int udpc_nrParticipants(participantsDb_t);
int udpc_addParticipant(participantsDb_t,
                  struct sockaddr *addr, 
                  int capabilities, 
                  unsigned int rcvbuf,
                  int pointopoint);
participantsDb_t udpc_makeParticipantsDb(void);
int udpc_getParticipantCapabilities(participantsDb_t db, int i);
unsigned int udpc_getParticipantRcvBuf(participantsDb_t db, int i);
struct sockaddr *udpc_getParticipantIp(participantsDb_t db, int i);
void udpc_printNotSet(participantsDb_t db, char *d);
void udpc_printSet(participantsDb_t db, char *d);

#endif

Generated by  Doxygen 1.6.0   Back to index