/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/Comm/UdpStats.m

00001 //
00002 //  UdpStats.m
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 06/05/2006.
00006 //  Copyright 2006 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import "UdpStats.h"
00010 
00011 
00012 @implementation UdpStats
00013 
00014 int udp_dropped = 0;
00015 int udp_recent_dropped = 0;
00016 int udp_total = 0;
00017 int recent_count = 0;
00018 int recent_dropped = 0;
00019 int sequence = 0;
00020 int packets_sent = 0;
00021 int packets_received = 0;
00022 
00023 - (id) init {
00024     self = [super init];
00025     if (self != nil) {
00026         udp_dropped = 0;
00027         udp_recent_dropped = 0;
00028         udp_total = 0;
00029         recent_count = 0;
00030         recent_dropped = 0;
00031         sequence = 0;
00032         packets_sent = 0;
00033         packets_received = 0;
00034     }
00035     return self;
00036 }
00037 
00038 -(void) increasePacketsSendBy:(int) newValue {
00039     packets_sent += newValue;
00040 }
00041 
00042 -(void) increaseUdpDroppedBy:(int) newValue {
00043     udp_dropped += newValue;
00044 }
00045 
00046 -(void) increaseUdpRecentDroppedBy:(int) newValue {
00047     udp_recent_dropped += newValue;
00048 }
00049 
00050 -(void) increaseUdpTotalBy:(int) newValue {
00051     udp_total += newValue;
00052 }
00053 
00054 -(void) increaseRecentCountBy:(int) newValue {
00055     recent_count += newValue;
00056 }
00057 
00058 -(void) increaseRecentDroppedBy:(int) newValue {
00059     recent_dropped += newValue;
00060 }
00061 
00062 -(void) increaseSequenceBy:(int) newValue {
00063     sequence += newValue;
00064 }
00065 
00066 -(void) setUdpDropped:(int) newValue {
00067     udp_dropped = newValue;
00068 }
00069 
00070 -(void) setUdpRecentDropped:(int) newValue {
00071     udp_recent_dropped = newValue;
00072 }
00073 
00074 -(void) setUdpTotal:(int) newValue {
00075     udp_total = newValue;
00076 }
00077 
00078 -(void) setRecentCount:(int) newValue {
00079     recent_count = newValue;
00080 }
00081 
00082 -(void) setRecentDropped:(int) newValue {
00083     recent_dropped = newValue;
00084 }
00085 
00086 -(void) setSequence:(int) newValue {
00087     sequence = newValue;
00088 }
00089 
00090 -(void) setPacketsSent:(int) newValue {
00091     packets_sent = newValue;
00092 }
00093 
00094 -(void) setPacketsReceived:(int) newValue {
00095     packets_received = newValue;
00096 }
00097 
00098 -(int) udpDropped {
00099     return udp_dropped;
00100 }
00101 
00102 -(int) udpRecentDropped{
00103     return udp_dropped;
00104 }
00105 
00106 -(int) udpTotal{
00107     return udp_total;
00108 }
00109 
00110 -(int) recentCount{
00111     return recent_count;
00112 }
00113 
00114 -(int) recentDropped{
00115     return recent_dropped;
00116 }
00117 
00118 -(int) sequence{
00119     return sequence;
00120 }
00121 
00122 -(int) packetsSent{
00123     return packets_sent;
00124 }
00125 
00126 -(int) packetsReceived{
00127     return packets_received;
00128 }
00129 
00130 @end

Generated on Fri Jul 28 19:15:16 2006 for MacTrek by  doxygen 1.4.7