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

statistics.h

#ifndef STATISTICS_H
#define STATISTICS_H


typedef struct receiver_stats *receiver_stats_t;
typedef struct sender_stats *sender_stats_t;

#define allocReadStats udpc_allocReadStats
#define receiverStatsStartTimer udpc_receiverStatsStartTimer
#define receiverStatsAddBytes udpc_receiverStatsAddBytes
#define displayReceiverStats udpc_displayReceiverStats

receiver_stats_t udpc_allocReadStats(int fd);
void udpc_receiverStatsStartTimer(receiver_stats_t);
void udpc_receiverStatsAddBytes(receiver_stats_t, long bytes);
void udpc_displayReceiverStats(receiver_stats_t);

#define allocSenderStats udpc_allocSenderStats
#define senderStatsAddBytes udpc_senderStatsAddBytes
#define senderStatsAddRetransmissions udpc_senderStatsAddRetransmissions
#define displaySenderStats udpc_displaySenderStats
#define senderSetAnswered udpc_senderSetAnswered

sender_stats_t udpc_allocSenderStats(int fd);
void udpc_senderStatsAddBytes(sender_stats_t, long bytes);
void udpc_senderStatsAddRetransmissions(sender_stats_t ss, 
                        int retransmissions);
void udpc_displaySenderStats(sender_stats_t,int blockSize, int sliceSize);
void udpc_senderSetAnswered(sender_stats_t ss, int clNo);


#endif

Generated by  Doxygen 1.6.0   Back to index