Results 1 to 7 of 7

Thread: [RESOLVED] [2008] Winsock...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Resolved [RESOLVED] [2008] Winsock...

    This is very strange...

    Code:
            Con_Win.Protocol = MSWinsockLib.ProtocolConstants.sckTCPProtocol
            Con_Win.RemotePort = "80"
            Con_Win.RemoteHost = "http://www.google.com"
            Con_Win.Connect()
    
            Data_To_Send = "GET \" & vbCrLf & vbCrLf
    
            Con_Win.SendData(Data_To_Send)
    I get this weird error:
    Exception from HRESULT: 0x800A9C46

    Any ideas/fixes?

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: [2008] Winsock...

    Do you get the error on the SendData line?
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: [2008] Winsock...

    Yep.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2008] Winsock...

    Instead of winsock, why not use the build in .NET class that handles this kind of thing?

    http://msdn2.microsoft.com/en-us/lib...t.sockets.aspx

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: [2008] Winsock...

    Hmmm... yeah i've been reading about this trying to find an answer. I haven't found a working code yet.

    Though i did read some where that MSDN had an example of a chat client & server... i'm only interested in the client side... or more specifically how to connect and send data, and how to know when data is received... I'm still looking around. But if you already know where to find this then post it please =).

    Apparently Winsock don't work anymore either... like the COM winsock. Old VB6 habbits.

  6. #6
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2008] Winsock...

    Quote Originally Posted by Slyke
    Hmmm... yeah i've been reading about this trying to find an answer. I haven't found a working code yet.

    Though i did read some where that MSDN had an example of a chat client & server... i'm only interested in the client side... or more specifically how to connect and send data, and how to know when data is received... I'm still looking around. But if you already know where to find this then post it please =).

    Apparently Winsock don't work anymore either... like the COM winsock. Old VB6 habbits.
    Have you tried searching these forums for 'Tcp'?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: [RESOLVED] [2008] Winsock...

    Yep =). I found some code by some guy called Athiest or something. His code worked fine. Thank you though.

    Wow, new technology, lol.

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