Replacement of Winsock in Visual Basic 6?

Hello Microsoft.

Is there anyway to make any replacement of the Winsock Protocol in Visual Basic 6




Answer this question

Replacement of Winsock in Visual Basic 6?

  • Trev

    Yes, but I have DMZ enabled, so my IP should be unprotected and static all time.

  • dschon

     

    I find that the WebRequest class and associated System.Net classes are great.

    I would recomend that you learn to use the Object Browser.

    The ObjectBrowser is your friend!!!!!



  • Sivaji Srinivas Narra

    Though now I could use some help on handling events and creating such socket ;)

  • deeptranz03

     Mathy wrote:
     Mathy wrote:

    I didn't actually understand any of those posts, since I want to be just as fimiliar to Sockets here as WinSockets in VB6. I don't understand the events of it or anything, or even how to place the socket on a form. Also, I want to know what all that DNS and all that stuff is, and why it's needed. Yeah actually, I need a basic guide covering all basics for sockets for a newbie :P

    Nevermind, I think I got the hang of it.

    However, I would like to know how to receive the internet IP of the computer you're on, in order to know what IP to listen to. I guess 127.0.0.1 isn't good enough :D

    This is what I've got so far. Now, I would like the new socket I made to simply listen to the IP of the computer. Not the localhost IP.

    Dim Socket As Net.Sockets.Socket

    Socket = New Net.Sockets.Socket(Net.Sockets.AddressFamily.InterNetwork, Net.Sockets.SocketType.Stream, Net.Sockets.ProtocolType.Tcp)



  • bettoni

     Mathy wrote:
    Though now I could use some help on handling events and creating such socket ;)
    I still need help on this...

  • Izak

     

    Overall what do you want your program to do



  • CARABAS

    are you behind a router

  • none0

     



  • dkocur2

     Mathy wrote:

    I didn't actually understand any of those posts, since I want to be just as fimiliar to Sockets here as WinSockets in VB6. I don't understand the events of it or anything, or even how to place the socket on a form. Also, I want to know what all that DNS and all that stuff is, and why it's needed. Yeah actually, I need a basic guide covering all basics for sockets for a newbie :P

    Nevermind, I think I got the hang of it.

    However, I would like to know how to receive the internet IP of the computer you're on, in order to know what IP to listen to. I guess 127.0.0.1 isn't good enough :D



  • SlightlySlow

    TBH m8 I gave up on it, I was trying to use the Stream class and TcpClient which are fairly close in functionality to WinSock but had so many problems that I gave up, I was trying to talk to a custom tcp server running on linux, in the end I took the easy route and re-wrote my server to use port 80 and send http data out and just used the webclient class to do a really basic page grab...  I was using the Microsoft examples for streams etc but they only work if you are grabbing a single data packet....  Could be my interpretation of their example of course...

    Search for streams and tcpclient in the MSDN library, there are plenty of examples... good luck :)


  • Youz

    Helped me a lot. Indeed, Object Browser is just not my new friend, it's my hero! Thanks!

  • Val Savvateev

     

    I've been through fifty way to get DNS records today. None of them work for al of the kinds of records I want.

    BUT....For a ireally long tome I haven't known how to do a POST to a web page button and programmatical push it. Today I sat down and wrote and it worked that first time every time. I'm sending  information to a page  as I do a post to and the stream comes back the first time.  I'm absolutely amazed. This product  works so well!!!!



  • ryan_scanner

    It's a general chat. Like kick people, whatever.

  • dpwoody

    I didn't actually understand any of those posts, since I want to be just as fimiliar to Sockets here as WinSockets in VB6. I don't understand the events of it or anything, or even how to place the socket on a form. Also, I want to know what all that DNS and all that stuff is, and why it's needed. Yeah actually, I need a basic guide covering all basics for sockets for a newbie :P



  • Replacement of Winsock in Visual Basic 6?