> Can anybody see what I'm doing wrong here?

You're embarking on a journey on a deeper, wider and more dangerous ocean
than you realize (speaking from personal experience), regardless of which
library you're trying to sail with. Suggestion: stop following the
wiresharks for a while, and fish in the protected lagoon--you need some
theoretical understanding before chasing the bits; before you know it you'll
be frolicking with the killer whales...  As for me, I'm still drowning at
the wrong end of the fire hose supplied by that ocean...   While I could go
on beating any number of metaphors to death... I'll try to switch gears:

Actually, depending on your knowledge and experience with threading and
possibly some other issues... learning this might take a while...  This
isn't something you'll likely be able to learn from asking a few questions
on a message board; though it might speed you on your way. Without *really*
getting into your code, for which I don't have the time, this is what I see
(corrections are welcome):

I think your client code is OK, but only for sending data; you haven't set
up anything for receiving an echo (which you may not care about in this
experiment). If you really wanted to receive, you'd need pretty much the
REVERSE setup on the other (client) computer (a server functionality, like
you're trying to set up in the mutilated echo server).

ON THE SERVER SIDE HOWEVER: You're putting your job/task code INTO the
DEMON/LISTENING thread. The "job" functionality needs to be put into the
worker threads, which the demon (listening) thread "spawns" to service each
incoming request. The demon thread's only job is to listen for requests and
hand them off to worker threads, and get back to listening...

Short of reading some books (or at least several chapters), and studying
examples from on- and off-line sources, I think you'll *at least* need to
study the echo demo (and some others, maybe the proxy) to get a better sense
of what they're doing.


BTW, it's quite possible that the Winsock unit was not referenced in that
Echo demo project; several demos are (slightly) broken, and never do seem to
get fixed (in the main project's code), even though it would be less work
than responding to all the new users' questions...



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to