RVMX NET Toolの使い方

本 NET Toolは、.NET開発用ソフト部品として作られています。
========================================================
User登録(RVMX_NetTool_userreg.exeを実行)詳細は
    

       

1.仕様
namespace
  rvmx_net
class
  net_tools
Property
  LocalIP  ロースルIP
  RemoteIP リモートIP
  Port   ポート番号
  RemotePort リモートポート番号
  socket ソケット

Event
  connect_end connectEventHandler(object sender,EventArgs e);
  receive_end receiveEventHandler(object sender,recdataArgs e);
  send_end sendEventHandler(object sender,EventArgs e);

Metod
  Connect()
  Connect(EndPoint remoteEP) vb:Connect(ByVal remoteEP as EndPoint)
  ListenStart()
  ListenStart(IPEndPoint localEndPoint)             vb:ListenStart(ByVal localEndPoint as IPEndPoint) 
  ListenStart(int port)                        vb:ListenStart(ByVal port as integer)
  Send(string data) vb:Send(ByVal data as String)
  Send(Socket handler, string data)                vb:Send(Byval handler as Socket,ByVal data as String)
  Send(byte[] data)                          vb:Send(ByVal data() as byte)
  Send(Socket handler, byte[] Data)                vb:Send(ByVal handler as Socket,ByVal data() as byte)
  Close()
  Close(Socket handler) vb:Close(ByVal handler as Socket)
  getendpoint(string host,int port)//IPEndPoint         vb:getendpoint(ByVal host as String,ByVal port as integer)
  getendpoint(IPAddress ipAddress,int port)//IPEndPoint   vb:getendpoint(ByVal ipAddress as IPAddress,ByVal port as integer)
Connected()//bool readonly
Connected(Socket handler)//bool readonly            vb:Connected(ByVal handler as Socket)
 
Strucure
  recdataArgs
    int Length           vb:Length as integer
    string recdata                   vb:recdata as string


=========================================================
2.使用例
インスタンスの作成
   private net_tools wk=new net_tools();

初期化(イベントとkey code設定)
  wk.connect_end += new connectEventHandler(connect_end);
  wk.receive_end += new receiveEventHandler(receive_end);
  wk.send_end += new sendEventHandler(send_end);
  //wk.Id="*******";
  //key codeの設定が無いか、購入登録が無い時は試用版として動作します。

イベント処理例
  接続完了後Hellowを送信例
    private void connect_end(object sender,EventArgs e) 
    {
      textBox1.Text+="connect end "+sender.ToString()+"\r\n";
      wk.Send((System.Net.Sockets.Socket)sender,"Hellow");//Hellowを送信
      wk.Close((Socket)sender);
    }

    private void send_end(object sender,EventArgs e)
    {
       textBox1.Text+="send end\r\n";
    }

  受信後textBox1へ表示例
    private void receive_end(object sender,recdataArgs e)
    {
       try
       {
          textBox1.Text+=e.recdata;//受信データ
          wk.Close((System.Net.Sockets.Socket)sender);
       }
       catch{}
    }

待ち受け
   port:ポート番号
   wk.ListenStart(wk.getendpoint("localhost",port));

=============================================================

 3.価格  Online Shopを参照願います

        組み込み後の配布にはライセンスは必要有りません。

 

(有)RVMX

提供ソフトのQ&A
(有)RVMX