synrdyne
asked on
Visual Basic WInsock Api..... "recv" is receiving zero bytes and zero data from my server..... the send works good!
IN a Visual Basic 6.0, Winsock API I was able to connect and send data to the server...... But my "recv" statement is getting zero data back from the server and zero bytes back! I was able to talk the server analyst and he verified that he was getting my request in and sending back data. But my "recv" couldn't see the data sent back! Any ideas? I verified the arguments in the "recv" and the data types.
Thanks
Dim nFlags As Long
Dim getData As String
Dim ictr As Long
' s is an integer set with proper socket id
nFlags = 0
dwBytes = recv(s, ByVal getData, Len(getData), nFlags)
Thanks
Dim nFlags As Long
Dim getData As String
Dim ictr As Long
' s is an integer set with proper socket id
nFlags = 0
dwBytes = recv(s, ByVal getData, Len(getData), nFlags)
By the way how r u passing ur data? is it just a string message or from some kind of database??? it really matters how u r passing over/getting back. In some cases, it might NOT be the same.. Be specific a bit. maybe i could help u..
ASKER
Thank you for your interest. I found that my recv buf area was defined correctly. I needed to give it a large allotment. Rick
ASKER
Thank you for your interest. I found that my recv buf area was defined IN-correctly. I needed to give it a large allotment. Rick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
-->PAQ - with points refunded
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER
GPrentice00
Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
-->PAQ - with points refunded
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER
GPrentice00
Cleanup Volunteer