// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Idiohandlerthrottle.pas' rev: 10.00

#ifndef IdiohandlerthrottleHPP
#define IdiohandlerthrottleHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Idcomponent.hpp>	// Pascal unit
#include <Idglobal.hpp>	// Pascal unit
#include <Idiohandler.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Idiohandlerthrottle
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TIdIOHandlerThrottle;
class PASCALIMPLEMENTATION TIdIOHandlerThrottle : public Idiohandler::TIdIOHandler 
{
	typedef Idiohandler::TIdIOHandler inherited;
	
protected:
	Idiohandler::TIdIOHandler* FChainedHandler;
	unsigned FBytesPerSec;
	unsigned __fastcall GetBitsPerSec(void);
	void __fastcall SetBitsPerSec(unsigned AValue);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	
public:
	virtual void __fastcall Close(void);
	virtual void __fastcall ConnectClient(const AnsiString AHost, const int APort, const AnsiString ABoundIP, const int ABoundPort, const int ABoundPortMin, const int ABoundPortMax, const int ATimeout = 0xffffffff);
	virtual bool __fastcall Connected(void);
	__fastcall virtual TIdIOHandlerThrottle(Classes::TComponent* AOwner);
	__fastcall virtual ~TIdIOHandlerThrottle(void);
	virtual void __fastcall Open(void);
	virtual bool __fastcall Readable(int AMSec = 0xffffffff);
	virtual int __fastcall Recv(void *ABuf, int ALen);
	virtual int __fastcall Send(void *ABuf, int ALen);
	
__published:
	__property unsigned BytesPerSec = {read=FBytesPerSec, write=FBytesPerSec, nodefault};
	__property unsigned BitsPerSec = {read=GetBitsPerSec, write=SetBitsPerSec, nodefault};
	__property Idiohandler::TIdIOHandler* ChainedHandler = {read=FChainedHandler, write=FChainedHandler};
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Idiohandlerthrottle */
using namespace Idiohandlerthrottle;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Idiohandlerthrottle
