unit1.h

来自「send data using udp」· C头文件 代码 · 共 54 行

H
54
字号
//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <NMUDP.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TStatusBar *StatusBar1;
        TNMUDP *NMUDP1;
        TLabel *Label1;
        TLabel *Label2;
        TEdit *Host;
        TEdit *Port;
        TGroupBox *GroupBox1;
        TEdit *UDPMsg;
        TButton *BtSendMsg;
        TGroupBox *GroupBox2;
        TEdit *UDPStream;
        TButton *BtLoadFile;
        TButton *BtSendStream;
        TLabel *Label3;
        TRichEdit *Output;
        TOpenDialog *OpenDialog1;
        void __fastcall NMUDP1DataReceived(TComponent *Sender,
          int NumberBytes, AnsiString FromIP, int Port);
        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 + -
显示快捷键?