unit1.h

来自「网络编程的一些实例」· C头文件 代码 · 共 53 行

H
53
字号
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <NMUDP.hpp>
#include <Psock.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
    TNMUDP *NMUDP1;
    TEdit *Host;
    TLabel *Label1;
    TGroupBox *GroupBox1;
    TEdit *UDPMsg;
    TButton *BtSendMsg;
    TRichEdit *Output;
    TEdit *Port;
    TLabel *Label4;
    TLabel *Label3;
    TGroupBox *GroupBox2;
    TEdit *UDPStream;
    TButton *BtLoadFile;
    TButton *BtSendStream;
    TOpenDialog *OpenDialog1;
    TStatusBar *StatusBar1;
            void __fastcall NMUDP1DataReceived(TComponent *Sender, int NumberBytes,
          AnsiString FromIP);
        void __fastcall BtSendMsgClick(TObject *Sender);
        void __fastcall BtLoadFileClick(TObject *Sender);
        void __fastcall BtSendStreamClick(TObject *Sender);
        void __fastcall NMUDP1DataSend(TObject *Sender);
        void __fastcall NMUDP1InvalidHost(bool &handled);
        void __fastcall NMUDP1Status(TComponent *Sender,
          AnsiString status);
        void __fastcall NMUDP1StreamInvalid(bool &handled,
          TStream *Stream);
private:	// User declarations
    bool    ValidStream;
public:		// User declarations
    __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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