Code Search for Developers
 
 
  

ThreadedOT.h from redshed at Krugle


Show ThreadedOT.h syntax highlighted

/****************************************************************************************
	ThreadedOT.h $Revision: 1.2 $
		<http://rentzsch.com/redshedthreads>
	
	Copyright © 2000-2002 Red Shed Software. All rights reserved.
	by Jonathan 'Wolf' Rentzsch (jon at redshed dot net)
	
	************************************************************************************/

#ifndef		_ThreadedOT_
#define		_ThreadedOT_

#include	"RedShedThreads.h"
#include	"OpenTransportProviders.h"

#ifndef	kOTInvalidInetSvcRef
	#define	kOTInvalidInetSvcRef	((InetSvcRef)kOTInvalidRef)
#endif

#ifdef		__cplusplus
extern	"C"	{
#endif	//	__cplusplus

	extern
	EndpointRef
TOTOpenEndpoint(
	RedShedThread		*thread,
	OTConfigurationRef	cfig,
	OTOpenFlags			oflag,
	TEndpointInfo		*info,
	OSStatus			*err,
	long				patience );

	extern
	InetSvcRef
TOTOpenInternetServices(
	RedShedThread		*thread,
	OTConfigurationRef	cfig,
	OSStatus			*err,
	long				patience );

	extern
	OSStatus
TOTBind(
	RedShedThread	*thread,
	EndpointRef		ref,
	TBind			*reqAddr,
	TBind			*retAddr,
	long			patience );

	extern
	OSStatus
TOTUnbind(
	RedShedThread	*thread,
	EndpointRef		ref,
	long			patience );

	extern
	OSStatus
TOTConnect(
	RedShedThread	*thread,
	EndpointRef		ref,
	TCall			*sndCall,
	TCall			*rcvCall,
	long			patience );

	extern
	OSStatus
TOTRcv(
	RedShedThread	*thread,
	EndpointRef		ref,
	void			*buf,
	OTByteCount		nbytes,
	long			patience );

	extern
	OSStatus
TOTRcvUntil(
			RedShedThread	*thread,
			EndpointRef		ref,
			void			*buf,
			OTByteCount		*size,
	const	unsigned char	*until,
			long			patience );

	extern
	OSStatus
TOTFlushRcv(
	EndpointRef	ref );

	extern
	OSStatus
TOTSnd(
			RedShedThread	*thread,
			EndpointRef		ref,
	const	void			*buf,
			OTByteCount		nbytes,
			Boolean			moreToCome,
			long			patience );

	extern
	OSStatus
TOTSndDisconnect(
	RedShedThread	*thread,
	EndpointRef		ref,
	TCall			*call,
	long			patience );

	extern
	OSStatus
TOTSndRcvOrderlyDisconnect(
	RedShedThread	*thread,
	EndpointRef		ref,
	long			patience );

	extern
	OSStatus
TOTInetMailExchange(
	RedShedThread		*thread,
	InetSvcRef			ref,
	char				*name,
	UInt16				*num,
	InetMailExchange	*mx,
	long				patience );

	extern
	OSStatus
TOTOptionManagement(
	RedShedThread	*thread,
	EndpointRef		ref,
	TOptMgmt		*req,
	TOptMgmt		*ret,
	long			patience );

	extern
	OSStatus
TOTAccept(
	RedShedThread	*thread,
	EndpointRef		listener,
	EndpointRef		worker,
	TCall			*call,
	long			patience );

#ifdef	__cplusplus
}
#endif

#endif	//	_ThreadedOT_



See more files for this project here

redshed

Code for Mac+WebObjects.

Project homepage: http://sourceforge.net/projects/redshed
Programming language(s): C,Java,Objective C
License: other

  CFMA5.h
  ThreadedFile.c
  ThreadedFile.h
  ThreadedOT.c
  ThreadedOT.h
  WaitRedShedThread.c
  WaitRedShedThread.h