|
-
Apr 9th, 2008, 02:52 PM
#1
Thread Starter
Frenzied Member
Direct Connection
What would be the best way of sending data directly to someone through their ip address? No servers involved.
As in, you type their ip address into this program, (a port?), and your message, and if they are running this program, they receive said message in the application.
Should I send packets, use some .NET state of the art class that I am unaware of that sends messages and such, or some other approach?
I'm looking for a direct way to send data from one computer to another, be it text, an image in the form of an array of bytes, or whatever.
Thanks.
-
Apr 9th, 2008, 03:09 PM
#2
Re: Direct Connection
Windows Communication Foundation is the VB 2008 library designed to do this. Google it and you'll find a ton of examples on how to implement it.
(VB/C#) is clearly superior to (C#/VB) because it (has/doesn't have) <insert trivial difference here>.
-
Apr 9th, 2008, 04:48 PM
#3
Re: Direct Connection
You can also look at System.Net.Sockets as well as TcpClient.
-
Apr 9th, 2008, 05:21 PM
#4
Re: Direct Connection
The application of yours would need to use a TcpListener to listen on a specific port for incoming connection, and a TcpClient to connect to other hosts.
Or you could use the corresponding UDP classes. But I dont think that would be needed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|