/Volumes/Plantain/MyDocuments/Projects/MacTrek/MacTrek/FrameWorks/OmniNetworking.framework/Versions/Current/Headers/ONServiceEntry.h

00001 // Copyright 1997-2005 Omni Development, Inc.  All rights reserved.
00002 //
00003 // This software may only be used and reproduced according to the
00004 // terms in the file OmniSourceLicense.html, which should be
00005 // distributed with this project and can also be found at
00006 // <http://www.omnigroup.com/developer/sourcecode/sourcelicense/>.
00007 //
00008 // $Header: svn+ssh://source.omnigroup.com/Source/svn/Omni/tags/SourceRelease_2005-11-18/OmniGroup/Frameworks/OmniNetworking/ONServiceEntry.h 68913 2005-10-03 19:36:19Z kc $
00009 
00010 #import <OmniBase/OBObject.h>
00011 
00012 #import "FrameworkDefines.h"
00013 
00014 @interface ONServiceEntry : OBObject
00015 {
00016     NSString *serviceName;
00017     NSString *protocolName;
00018     int portNumber;
00019 }
00020 
00021 + (ONServiceEntry *)httpService;
00022 + (ONServiceEntry *)smtpService;
00023 
00024 + serviceEntryNamed:(NSString *)aServiceName protocolName:(NSString *)aProtocolName;
00025 
00026 + (void)hintPort:(int)portNumber forServiceNamed:(NSString *)aServiceName protocolName:(NSString *)aProtocolName;
00027 
00028 - (NSString *)serviceName;
00029 - (NSString *)protocolName;
00030 - (unsigned short int)portNumber;
00031 
00032 @end
00033 
00034 // This is not an exhaustive list, but more than most people will ever use
00035 OmniNetworking_EXTERN NSString *ONServiceEntryIPProtocolName;
00036 OmniNetworking_EXTERN NSString *ONServiceEntryICMPProtocolName;
00037 OmniNetworking_EXTERN NSString *ONServiceEntryTCPProtocolName;
00038 OmniNetworking_EXTERN NSString *ONServiceEntryUDPProtocolName;
00039 
00040 // Exceptions which may be raised by this class
00041 OmniNetworking_EXTERN NSString *ONServiceNotFoundExceptionName;

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