⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scktconnect.hpp

📁 boomerang library 5.11 internet ed
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

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

#ifndef ScktconnectHPP
#define ScktconnectHPP

#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 <Connect.hpp>	// Pascal unit
#include <Scktcomp.hpp>	// Pascal unit
#include <Winsock.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit

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

namespace Scktconnect
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TClientSocketThread;
class DELPHICLASS TClientSocketConnection;
class PASCALIMPLEMENTATION TClientSocketConnection : public Connect::TCommunicationConnection 
{
	typedef Connect::TCommunicationConnection inherited;
	
private:
	int FPort;
	AnsiString FHost;
	AnsiString FAddress;
	AnsiString FService;
	Scktcomp::TCustomWinSocket* FSocket;
	TClientSocketThread* FEventThread;
	void __fastcall SetAddress(AnsiString Value);
	void __fastcall SetHost(AnsiString Value);
	void __fastcall SetPort(int Value);
	void __fastcall SetService(AnsiString Value);
	
protected:
	virtual void __fastcall OpenConn(void);
	virtual void __fastcall CloseConn(void);
	virtual int __fastcall Write(void *Buf, int Count);
	virtual int __fastcall Read(void *Buf, int Count);
	
public:
	__fastcall virtual TClientSocketConnection(Classes::TComponent* aOwner);
	__fastcall virtual ~TClientSocketConnection(void);
	virtual int __fastcall InQueCount(void);
	virtual void __fastcall PurgeIn(void);
	virtual void __fastcall PurgeOut(void);
	__property Scktcomp::TCustomWinSocket* Socket = {read=FSocket};
	
__published:
	__property AnsiString Address = {read=FAddress, write=SetAddress};
	__property AnsiString Host = {read=FHost, write=SetHost};
	__property int Port = {read=FPort, write=SetPort, nodefault};
	__property AnsiString Service = {read=FService, write=SetService};
	__property OnRxChar ;
};


class PASCALIMPLEMENTATION TClientSocketThread : public Classes::TThread 
{
	typedef Classes::TThread inherited;
	
private:
	TClientSocketConnection* FConnection;
	
protected:
	virtual void __fastcall Execute(void);
	void __fastcall DoOnSignal(void);
	
public:
	__fastcall TClientSocketThread(TClientSocketConnection* aConnection);
public:
	#pragma option push -w-inl
	/* TThread.Destroy */ inline __fastcall virtual ~TClientSocketThread(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall Register(void);

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

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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -