|
@@ -35,18 +35,19 @@
|
|
|
this.PublicEndPointTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.KeepAliveTimer = new System.Windows.Forms.Timer(this.components);
|
|
|
this.SendButton = new System.Windows.Forms.Button();
|
|
|
- this.SendToEndPointTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.SendContentTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.RecvTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.PeerKetyDropDown = new System.Windows.Forms.ComboBox();
|
|
|
- this.StatusLabel = new System.Windows.Forms.Label();
|
|
|
+ this.PeerToKonckDropDown = new System.Windows.Forms.ComboBox();
|
|
|
+ this.KnockButton = new System.Windows.Forms.Button();
|
|
|
+ this.SendToEndPointTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// StartButton
|
|
|
//
|
|
|
- this.StartButton.Location = new System.Drawing.Point(155, 44);
|
|
|
+ this.StartButton.Location = new System.Drawing.Point(266, 12);
|
|
|
this.StartButton.Name = "StartButton";
|
|
|
- this.StartButton.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.StartButton.Size = new System.Drawing.Size(64, 23);
|
|
|
this.StartButton.TabIndex = 0;
|
|
|
this.StartButton.Text = "Start";
|
|
|
this.StartButton.UseVisualStyleBackColor = true;
|
|
@@ -54,18 +55,18 @@
|
|
|
//
|
|
|
// ServerIEndPointTextBox
|
|
|
//
|
|
|
- this.ServerIEndPointTextBox.Location = new System.Drawing.Point(12, 44);
|
|
|
+ this.ServerIEndPointTextBox.Location = new System.Drawing.Point(12, 38);
|
|
|
this.ServerIEndPointTextBox.Name = "ServerIEndPointTextBox";
|
|
|
- this.ServerIEndPointTextBox.Size = new System.Drawing.Size(137, 21);
|
|
|
+ this.ServerIEndPointTextBox.Size = new System.Drawing.Size(107, 21);
|
|
|
this.ServerIEndPointTextBox.TabIndex = 1;
|
|
|
- this.ServerIEndPointTextBox.Text = "127.111.111.111:23330";
|
|
|
+ this.ServerIEndPointTextBox.Text = "127.0.0.1:23330";
|
|
|
//
|
|
|
// StopButton
|
|
|
//
|
|
|
this.StopButton.Enabled = false;
|
|
|
- this.StopButton.Location = new System.Drawing.Point(236, 44);
|
|
|
+ this.StopButton.Location = new System.Drawing.Point(266, 41);
|
|
|
this.StopButton.Name = "StopButton";
|
|
|
- this.StopButton.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.StopButton.Size = new System.Drawing.Size(64, 23);
|
|
|
this.StopButton.TabIndex = 0;
|
|
|
this.StopButton.Text = "Stop";
|
|
|
this.StopButton.UseVisualStyleBackColor = true;
|
|
@@ -73,51 +74,49 @@
|
|
|
//
|
|
|
// PublicEndPointTextBox
|
|
|
//
|
|
|
- this.PublicEndPointTextBox.Location = new System.Drawing.Point(317, 46);
|
|
|
+ this.PublicEndPointTextBox.Location = new System.Drawing.Point(125, 38);
|
|
|
this.PublicEndPointTextBox.Name = "PublicEndPointTextBox";
|
|
|
this.PublicEndPointTextBox.ReadOnly = true;
|
|
|
- this.PublicEndPointTextBox.Size = new System.Drawing.Size(183, 21);
|
|
|
+ this.PublicEndPointTextBox.Size = new System.Drawing.Size(132, 21);
|
|
|
this.PublicEndPointTextBox.TabIndex = 3;
|
|
|
this.PublicEndPointTextBox.Text = "???.???.???.???:?????";
|
|
|
//
|
|
|
// KeepAliveTimer
|
|
|
//
|
|
|
- this.KeepAliveTimer.Interval = 1000;
|
|
|
+ this.KeepAliveTimer.Interval = 5000;
|
|
|
this.KeepAliveTimer.Tick += new System.EventHandler(this.KeepAliveTimer_Tick);
|
|
|
//
|
|
|
// SendButton
|
|
|
//
|
|
|
this.SendButton.Enabled = false;
|
|
|
- this.SendButton.Location = new System.Drawing.Point(155, 71);
|
|
|
+ this.SendButton.Location = new System.Drawing.Point(266, 99);
|
|
|
this.SendButton.Name = "SendButton";
|
|
|
- this.SendButton.Size = new System.Drawing.Size(75, 23);
|
|
|
+ this.SendButton.Size = new System.Drawing.Size(64, 23);
|
|
|
this.SendButton.TabIndex = 0;
|
|
|
this.SendButton.Text = "Send";
|
|
|
this.SendButton.UseVisualStyleBackColor = true;
|
|
|
this.SendButton.Click += new System.EventHandler(this.SendButton_Click);
|
|
|
//
|
|
|
- // SendToEndPointTextBox
|
|
|
- //
|
|
|
- this.SendToEndPointTextBox.Location = new System.Drawing.Point(12, 71);
|
|
|
- this.SendToEndPointTextBox.Name = "SendToEndPointTextBox";
|
|
|
- this.SendToEndPointTextBox.Size = new System.Drawing.Size(137, 21);
|
|
|
- this.SendToEndPointTextBox.TabIndex = 1;
|
|
|
- this.SendToEndPointTextBox.Text = "???.???.???.???:00000";
|
|
|
- //
|
|
|
// SendContentTextBox
|
|
|
//
|
|
|
- this.SendContentTextBox.Location = new System.Drawing.Point(12, 100);
|
|
|
+ this.SendContentTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Left)));
|
|
|
+ this.SendContentTextBox.Location = new System.Drawing.Point(12, 126);
|
|
|
this.SendContentTextBox.Multiline = true;
|
|
|
this.SendContentTextBox.Name = "SendContentTextBox";
|
|
|
- this.SendContentTextBox.Size = new System.Drawing.Size(241, 130);
|
|
|
+ this.SendContentTextBox.Size = new System.Drawing.Size(318, 193);
|
|
|
this.SendContentTextBox.TabIndex = 4;
|
|
|
+ this.SendContentTextBox.Text = "00000000-0000-0000-0000-000000000000";
|
|
|
//
|
|
|
// RecvTextBox
|
|
|
//
|
|
|
- this.RecvTextBox.Location = new System.Drawing.Point(259, 100);
|
|
|
+ this.RecvTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Left)
|
|
|
+ | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
+ this.RecvTextBox.Location = new System.Drawing.Point(336, 12);
|
|
|
this.RecvTextBox.Multiline = true;
|
|
|
this.RecvTextBox.Name = "RecvTextBox";
|
|
|
- this.RecvTextBox.Size = new System.Drawing.Size(241, 130);
|
|
|
+ this.RecvTextBox.Size = new System.Drawing.Size(431, 307);
|
|
|
this.RecvTextBox.TabIndex = 4;
|
|
|
//
|
|
|
// PeerKetyDropDown
|
|
@@ -126,31 +125,52 @@
|
|
|
this.PeerKetyDropDown.FormattingEnabled = true;
|
|
|
this.PeerKetyDropDown.Location = new System.Drawing.Point(12, 12);
|
|
|
this.PeerKetyDropDown.Name = "PeerKetyDropDown";
|
|
|
- this.PeerKetyDropDown.Size = new System.Drawing.Size(488, 20);
|
|
|
+ this.PeerKetyDropDown.Size = new System.Drawing.Size(248, 20);
|
|
|
this.PeerKetyDropDown.TabIndex = 5;
|
|
|
//
|
|
|
- // StatusLabel
|
|
|
+ // PeerToKonckDropDown
|
|
|
+ //
|
|
|
+ this.PeerToKonckDropDown.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.PeerToKonckDropDown.FormattingEnabled = true;
|
|
|
+ this.PeerToKonckDropDown.Location = new System.Drawing.Point(12, 70);
|
|
|
+ this.PeerToKonckDropDown.Name = "PeerToKonckDropDown";
|
|
|
+ this.PeerToKonckDropDown.Size = new System.Drawing.Size(248, 20);
|
|
|
+ this.PeerToKonckDropDown.TabIndex = 5;
|
|
|
+ //
|
|
|
+ // KnockButton
|
|
|
//
|
|
|
- this.StatusLabel.AutoSize = true;
|
|
|
- this.StatusLabel.Location = new System.Drawing.Point(293, 76);
|
|
|
- this.StatusLabel.Name = "StatusLabel";
|
|
|
- this.StatusLabel.Size = new System.Drawing.Size(41, 12);
|
|
|
- this.StatusLabel.TabIndex = 6;
|
|
|
- this.StatusLabel.Text = "Ready.";
|
|
|
+ this.KnockButton.Enabled = false;
|
|
|
+ this.KnockButton.Location = new System.Drawing.Point(266, 70);
|
|
|
+ this.KnockButton.Name = "KnockButton";
|
|
|
+ this.KnockButton.Size = new System.Drawing.Size(64, 23);
|
|
|
+ this.KnockButton.TabIndex = 0;
|
|
|
+ this.KnockButton.Text = "Knock";
|
|
|
+ this.KnockButton.UseVisualStyleBackColor = true;
|
|
|
+ this.KnockButton.Click += new System.EventHandler(this.KnockButton_Click);
|
|
|
+ //
|
|
|
+ // SendToEndPointTextBox
|
|
|
+ //
|
|
|
+ this.SendToEndPointTextBox.Location = new System.Drawing.Point(12, 99);
|
|
|
+ this.SendToEndPointTextBox.Name = "SendToEndPointTextBox";
|
|
|
+ this.SendToEndPointTextBox.ReadOnly = true;
|
|
|
+ this.SendToEndPointTextBox.Size = new System.Drawing.Size(248, 21);
|
|
|
+ this.SendToEndPointTextBox.TabIndex = 3;
|
|
|
+ this.SendToEndPointTextBox.Text = "???.???.???.???:?????";
|
|
|
//
|
|
|
// ExampleForm
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
- this.ClientSize = new System.Drawing.Size(520, 250);
|
|
|
- this.Controls.Add(this.StatusLabel);
|
|
|
+ this.ClientSize = new System.Drawing.Size(779, 331);
|
|
|
+ this.Controls.Add(this.PeerToKonckDropDown);
|
|
|
this.Controls.Add(this.PeerKetyDropDown);
|
|
|
this.Controls.Add(this.RecvTextBox);
|
|
|
this.Controls.Add(this.SendContentTextBox);
|
|
|
- this.Controls.Add(this.PublicEndPointTextBox);
|
|
|
this.Controls.Add(this.SendToEndPointTextBox);
|
|
|
+ this.Controls.Add(this.PublicEndPointTextBox);
|
|
|
this.Controls.Add(this.ServerIEndPointTextBox);
|
|
|
this.Controls.Add(this.StopButton);
|
|
|
+ this.Controls.Add(this.KnockButton);
|
|
|
this.Controls.Add(this.SendButton);
|
|
|
this.Controls.Add(this.StartButton);
|
|
|
this.Name = "ExampleForm";
|
|
@@ -169,11 +189,12 @@
|
|
|
private System.Windows.Forms.TextBox PublicEndPointTextBox;
|
|
|
private System.Windows.Forms.Timer KeepAliveTimer;
|
|
|
private System.Windows.Forms.Button SendButton;
|
|
|
- private System.Windows.Forms.TextBox SendToEndPointTextBox;
|
|
|
private System.Windows.Forms.TextBox SendContentTextBox;
|
|
|
private System.Windows.Forms.TextBox RecvTextBox;
|
|
|
private System.Windows.Forms.ComboBox PeerKetyDropDown;
|
|
|
- private System.Windows.Forms.Label StatusLabel;
|
|
|
+ private System.Windows.Forms.ComboBox PeerToKonckDropDown;
|
|
|
+ private System.Windows.Forms.Button KnockButton;
|
|
|
+ private System.Windows.Forms.TextBox SendToEndPointTextBox;
|
|
|
}
|
|
|
}
|
|
|
|