/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/Design Stuff/COW/MetaServerWrapper.h

00001 //
00002 //  MetaServerWrapper.h
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 16/04/2006.
00006 //  Copyright 2006 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import <Cocoa/Cocoa.h>
00010 
00011 /* which meta to use, UDP, cache, or TCP */
00012 /* can be set in xtrekrc with metaType: */
00013 /* 1 == UDP, 2 == cache, TCP, 3 = TCP, cache */
00014 #define METATYPE_UDP      1
00015 #define METATYPE_CACHE    2
00016 #define METATYPE_TCP      3
00017 #define METATYPE_DEFAULT  METATYPE_TCP   
00018 
00019 @interface MetaServerWrapper : NSObject {
00020 
00021 }
00022 
00023 // returns an autoreleased array of servers, retain the array if you need it
00024 // it contains dictionaries with the fields:
00025 // - address
00026 // - port
00027 // - status
00028 // - numberOfPlayers
00029 // - type 
00030 - (NSArray *) getMetaData; // uses METATYPE_DEFAULT
00031 - (NSArray *) getMetaDataWithType:(int) metaType;
00032 
00033 @end

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