Re: [xSocket-develop] One client runs two ore more OnData methods (Threads)
Status: Inactive
Brought to you by:
grro
|
From: Gregor R. <gre...@gm...> - 2010-07-20 04:07:02
|
Hi Jens, onData is called each time the server receives network data. There is no one-to-one relationship between a "network message" and a onData call. onData will also be called, if only part of the "network message" is received. See http://xsocket.sourceforge.net/core/tutorial/V2/TutorialCore.htm Gregor -------- Original-Nachricht -------- > Datum: Mon, 19 Jul 2010 22:16:23 +0200 > Von: Jens Ramhorst <jr...@ju...> > An: xso...@li... > Betreff: [xSocket-develop] One client runs two ore more OnData methods (Threads) > Hello, > sorry for my bad english. > > I wrote a Server with the xSocket library. The Server gets data from more > than > 1000 embedded systems to store the data into a database. > In most cases it runs fine. But sometimes if double data in the database. > Now I found out, that one client opens sometimes two or more threads at > nearly > the same time (both threads works nearly parallel), but the client opens > only > on connection. > > Has anyone an idea? > > Thanks Jens > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop |