FrameWorks/OmniNetworking.framework/Versions/Current/Headers/ONTCPSocket.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/ONTCPSocket.h 68913 2005-10-03 19:36:19Z kc $
00009 
00010 #import "ONInternetSocket.h"
00011 
00012 @interface ONTCPSocket : ONInternetSocket
00013 {
00014     struct {
00015         unsigned int useNagle: 2;
00016         unsigned int pushWrites: 2;
00017     } tcpFlags;
00018 }
00019 
00020 + (Class)defaultTCPSocketClass;
00021 + (void)setDefaultTCPSocketClass:(Class)aClass;
00022 
00023 + (ONTCPSocket *)tcpSocket;
00024     // This creates a socket of the defaultTCPSocketClass
00025 
00026 - (void)startListeningOnAnyLocalPort;
00027 - (void)startListeningOnLocalPort:(unsigned short int)port;
00028 - (void)startListeningOnLocalPort:(unsigned short int)port allowingAddressReuse:(BOOL)reuse;
00029 - (void)startListeningOnLocalService:(ONServiceEntry *)service;
00030 
00031 - (void)acceptConnection;
00032 - (ONTCPSocket *)acceptConnectionOnNewSocket;
00033 
00034 - (void)setUsesNagleDelay:(BOOL)nagle;
00035 // - (BOOL)usesNagleDelay;
00036 
00037 - (void)setPushesWrites:(BOOL)push;
00038 // - (BOOL)pushesWrites;
00039 
00040 @end
00041 
00042 #import "FrameworkDefines.h"
00043 
00044 // Exceptions which may be raised by this class
00045 OmniNetworking_EXTERN NSString *ONTCPSocketListenFailedExceptionName;
00046 OmniNetworking_EXTERN NSString *ONTCPSocketAcceptFailedExceptionName;
00047 OmniNetworking_EXTERN NSString *ONTCPSocketWouldBlockExceptionName;

Generated on Sat Aug 26 21:14:14 2006 for MacTrek by  doxygen 1.4.7