How do I ping another computer?
-
There is a nice little Ping class for that...
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
There is a nice little Ping class for that...
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
correct. Long time ago I did if for 1.0 with some 100 lines of code, using Socket.SendTo and Socket.ReceiveFrom in a separate thread. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
correct. Long time ago I did if for 1.0 with some 100 lines of code, using Socket.SendTo and Socket.ReceiveFrom in a separate thread. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/AllLanguages/General - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
System.Net.NetworkInformation.Ping
orMy.Computer.Network.Ping()
The second one only returns a boolean value whether or not the ping succeeded. You'll have to tweak it a bit to make it work. I made an app that does the same thing "ping Google.com" does in command prompt. I can get you the basics if you wish. -
System.Net.NetworkInformation.Ping
orMy.Computer.Network.Ping()
The second one only returns a boolean value whether or not the ping succeeded. You'll have to tweak it a bit to make it work. I made an app that does the same thing "ping Google.com" does in command prompt. I can get you the basics if you wish.`Drew wrote:
System.Net.NetworkInformation.Ping
well that's 2.0 also
`Drew wrote:
My.Computer.Network.Ping()
I do almost everything using C#, and it does not have that nice My thingy. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
`Drew wrote:
System.Net.NetworkInformation.Ping
well that's 2.0 also
`Drew wrote:
My.Computer.Network.Ping()
I do almost everything using C#, and it does not have that nice My thingy. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
Luc Pattyn wrote:
`Drew wrote: System.Net.NetworkInformation.Ping well that's 2.0 also
Is that bad? I'm running 3.5 beta on my Vista machine.
Luc Pattyn wrote:
`Drew wrote: My.Computer.Network.Ping() I do almost everything using C#, and it does not have that nice My thingy.
Hmm, I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?
-
Luc Pattyn wrote:
`Drew wrote: System.Net.NetworkInformation.Ping well that's 2.0 also
Is that bad? I'm running 3.5 beta on my Vista machine.
Luc Pattyn wrote:
`Drew wrote: My.Computer.Network.Ping() I do almost everything using C#, and it does not have that nice My thingy.
Hmm, I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?
`Drew wrote:
well that's 2.0 also Is that bad?
No, but my first answer was the Ping class, which got commented as being 2.0
`Drew wrote:
I'm glad I'm stuck with VB.NET. What is the C# equal to My.settings?
Most of the things VB collected under My are available in all CLR languages, but not through an equivalent for My. Total Physical Memory is one of those things only VB's My offers. If you need to know how to do settings in C# I suggest you read MSDN about that. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google