public void TearDown()
 {
     if (this._sender != null)
     {
         this._sender.Destroy();
         this._sender = null;
     }
 }
Exemple #2
0
        static void StartUp()
        {
            RTMSender ms = new RTMSender();

            ms.SendMessage(new RTMMessageOut {
                channel = "C31UPGH33",
                text    = "And now I'm talking for myself"
            });
        }
Exemple #3
0
    public void TearDown()
    {
        if (this._sender != null)
        {
            this._sender.Destroy();
            this._sender = null;
        }

        if (this._client != null)
        {
            this._client.Close();
            this._client = null;
        }
    }
 public void SetUp()
 {
     RTMRegistration.Register();
     this._sender  = new RTMSender();
     this._client  = new FPClient("52.83.245.22", 13325, 20 * 1000);
     this._payload = new Dictionary <string, object>()
     {
         { "pid", 11000001 },
         { "uid", 777779 },
         { "what", "rtmGated" },
         { "addrType", "ipv4" },
         { "version", null }
     };
     this._data = new FPData();
     this._data.SetFlag(0x1);
     this._data.SetMtype(0x1);
     this._data.SetMethod("which");
 }
Exemple #5
0
 public void SetUp()
 {
     this._sender = new RTMSender();
     this._client = new FPClient("52.83.245.22", 13325, 20 * 1000);
 }