Results 1 to 5 of 5

Thread: System.Net.Sockets. <- how to use them

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    System.Net.Sockets. <- how to use them

    i want to make a application who needs internet to communicate with other applications...i heared that now i dont need anymore to use the winsock control coz now i can use the System.Net.Sockets...well i tryed and found out how to connect and listen...but i am not understanding how to send strings and receive strings...is there any goog tuturial and/or examples of how effectivly using System.Net.Sockets or u think it is not worth and i should continue using Winsock of vb6 in vb.net? tks anyways

  2. #2
    hellswraith
    Guest
    Although this is in C#, it should get you started...
    http://www.c-sharpcorner.com/internet/chat_server.asp
    You shouldn't use the winsock component anymore with .Net. You should be using the System.Net.Sockets like you indicated. Check out the link, it has how to send and receive strings.

  3. #3

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    damn looks just like MS trying to put anyone into C# and VB.NET is goin to suffer from that

  4. #4
    hellswraith
    Guest
    You can adapt the C# code pretty easy to VB.Net. The underlying framework is the same, just the syntax is changed. So it isn't that you have to use C# to do it, it is just this example in particular is in C#. It wasn't written by Microsoft, it was written by someone else.

    I think C# will become popular for many reasons, but not because MS is trying to drive VBers to it. I think it would be an advantage for you if you learn both though, that way when there is an example in C#, you can easily read it and apply it to VB and vice versa...just my 2 cents...

  5. #5

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmmmmmmm ok tks anyways

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width