Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
c# Send telnet command WinForms
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Permudious" data-source="post: 462651" data-attributes="member: 55273"><p>Hiya!</p><p></p><p>I am developing a tool which is using Tenet. I would like to send a command.</p><p>I have test this directly in Windows so the parameters should work, but I have no Idea how I can send a command when I press on a button.</p><p></p><p>This is the code below;</p><p></p><p>Please keep in mind;</p><p></p><p>IP = 127.0.0.1 (localhost)</p><p>Port = 4000</p><p>Username = not needed</p><p>Password = not needed</p><p></p><p>[CODE=csharp]</p><p>using (var client = new Client("127.0.0.1", 4000, new System.Threading.CancellationToken()))</p><p> {</p><p> if (client.IsConnected)</p><p> {</p><p> var s = new System.Text.StringBuilder();</p><p> s.Append("-red");</p><p> client.Write(s.ToString());</p><p> }</p><p> }[/CODE]</p><p></p><p>Thanks in advance!</p></blockquote><p></p>
[QUOTE="Permudious, post: 462651, member: 55273"] Hiya! I am developing a tool which is using Tenet. I would like to send a command. I have test this directly in Windows so the parameters should work, but I have no Idea how I can send a command when I press on a button. This is the code below; Please keep in mind; IP = 127.0.0.1 (localhost) Port = 4000 Username = not needed Password = not needed [CODE=csharp] using (var client = new Client("127.0.0.1", 4000, new System.Threading.CancellationToken())) { if (client.IsConnected) { var s = new System.Text.StringBuilder(); s.Append("-red"); client.Write(s.ToString()); } }[/CODE] Thanks in advance! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
c# Send telnet command WinForms
Top