/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/Comm/PingStats.h

00001 //-------------------------------------------
00002 // File:  PingStats.h
00003 // Class: PingStats
00004 // 
00005 // Created by Chris Lukassen 
00006 // Copyright (c) 2006 Luky Soft
00007 //-------------------------------------------
00008  
00009 #import <Cocoa/Cocoa.h>
00010 
00011 @interface PingStats : NSObject {
00012 
00013         int iloss_sc;   // inc % loss 0--100, server to client
00014         int iloss_cs;   // inc % loss 0--100, client to server
00015         int tloss_sc;   // total % loss 0--100, server to client
00016         int tloss_cs;   // total % loss 0--100, client to server
00017         int lag;                // delay in ms of last ping
00018         int av;             // rt time
00019         int sd;             // std deviation
00020 } 
00021 
00022 - (void) setIncrementalLossServerToClient: (int) rate_sc ClientToServer: (int) rate_cs;
00023 - (void) setTotalLossServerToClient: (int) rate_sc ClientToServer: (int) rate_cs;
00024 - (void) setLag: (int)newLag;
00025 - (void) setRoundTripTime: (int)time;
00026 - (void) setStandardDeviation: (int)deviation;
00027 
00028 - (int)  incrementalLossFromServerToClient;  
00029 - (int)  incrementalLossFromClientToServer;  
00030 - (int)  totalLossFromServerToClient;  
00031 - (int)  totalLossFromClientToServer;  
00032 - (int)  lagOfLastPing;  
00033 - (int)  roundTripTime;
00034 - (int)  standardDeviation;  
00035 - (void) calculateLag;
00036  
00037 @end

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