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

📄 unit1.h

📁 send data using udp
💻 H
字号:
//---------------------------------------------------------------------------

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -