January 11th, 2005, 03:09 PM
Receiving 1024 bytes
Can anyone show me the correct code for this,
I just got help on another forums and got the proper code for Parse and ParseData. Now when I try the above code (obviously, written in Python) I don;t get anywhere. I don't have any errors or have anything happen. Here's the code I'm using.
Dim strTmp As String
Winsock2.GetData strTmp, vbString
I just need to atleast know what strTmp should equal. Apparently making it receive 1024 bytes does nothing. Thanks.
strTmp = s.recv(1024)
January 12th, 2005, 05:07 AM
It should equal whatever was read from the socket by that particular recv() call. Which would depend on the Battlenet protocol, the user input/output from the start of the program, and where in the protocol the program is when the call is made.
It's exact contents are pretty much completely unpredictable to a person.
It does - it makes it wait until it receives between 1 and 1024 bytes from the socket, then return them.