|
-
Dec 31st, 2003, 12:59 PM
#1
Thread Starter
Fanatic Member
Sockets
Hi,
I want to create 2 simple programs which can communicate with eachother, client and server.
I was able to do this really easily with Visual Basic 6 using the Winsock control, but now I have heard you should use Sockets in .NET
Can anyone help me get started on using Sockets, as I have no idea how to use them - reading about sockets in the msdn just explains information which is irrelevant to what i want - it included dns resolving, which i dont need - i just want a simple connect to certain ip, transmit some data and close; simple as it gets with winsock.
VB Code:
Dim sServer As New Socket(AddressFamily.InterNetwork, _
SocketType.Stream, ProtocolType.Tcp)
I have that so far, where the hell do I go now? Or is there a different way to start. I wish it was just as simple as before...
Is it possible to use winsock anyway? Im feeling these errors it may produce aren't going to bother me if to fix them requires learning how to use Sockets - way too much work just to make the foundations to a simple client/server app.
Thanks very much
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
|