📄 clidemo1.h
字号:
//---------------------------------------------------------------------------
#ifndef CliDemo1H
#define CliDemo1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "WSocket.hpp"
//---------------------------------------------------------------------------
class TClientForm : public TForm
{
__published: // IDE-managed Components
TMemo *DisplayMemo;
TPanel *Panel1;
TLabel *LineLabel;
TLabel *Label1;
TLabel *Label2;
TEdit *SendEdit;
TButton *SendButton;
TButton *DisconnectButton;
TEdit *PortEdit;
TEdit *ServerEdit;
TWSocket *CliSocket;
void __fastcall DisconnectButtonClick(TObject *Sender);
void __fastcall SendButtonClick(TObject *Sender);
void __fastcall CliSocketDataAvailable(TObject *Sender, WORD Error);
void __fastcall CliSocketSessionConnected(TObject *Sender, WORD Error);
void __fastcall CliSocketSessionClosed(TObject *Sender, WORD Error);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall FormShow(TObject *Sender);
private: // User declarations
char Buffer[1024];
int Count;
WORD ConnectError;
BOOL Initialized;
void __fastcall ProcessCommand(AnsiString Cmd);
public: // User declarations
__fastcall TClientForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TClientForm *ClientForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -