|
-
Jan 9th, 2008, 09:49 AM
#1
Thread Starter
Fanatic Member
[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?
-
Jan 9th, 2008, 09:59 AM
#2
Re: [2008] Winsock...
Do you get the error on the SendData line?
My usual boring signature: Nothing
 
-
Jan 9th, 2008, 10:46 AM
#3
Thread Starter
Fanatic Member
-
Jan 9th, 2008, 10:54 AM
#4
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
-
Jan 9th, 2008, 11:23 AM
#5
Thread Starter
Fanatic Member
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.
-
Jan 9th, 2008, 11:26 AM
#6
Re: [2008] Winsock...
 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'?
-
Jan 9th, 2008, 11:53 AM
#7
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|