Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
VB6 WinSock control packets via SendData coming all at once
I have a function that calls 2 other functions that send packets via the winsock control, the problem is on the receiving ends the packets come in all at once.
how can i separate these two senddata calls so that the receiving end receives 2 DataArrival events rather than 1 combined from my 2 calls?
Visual Basic Classic
8/22/2022 - Mon
In a nutshell, you can't...not unless you delay the sending of the second transmission until after you have received a manual "ack" transmission signalling that the receiver has already received the first xmit.
Alternatively, you can "mark" the end of the first transmission with a special character sequence so that you can distinguish one transmission from the other even if they come in as one big lump.
What exactly are you trying to do?
Are you trying to copy file(s) to the server and and then SendData via Winsock to the server to process the file(s)?
I see, all of the packets have special 2 character "mark" marking the end of the packet...
Which loop do I use to correctly get through this packet chunk (where %% = delimiter)?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
i made this along time ago in VB6 to solve this same of problem when creating a Instant messenger
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent