I could not use the component and WSocketServer WSocketThrdServer not know how to use the event "OnDataAvailable" examples that have the error when the POS Terminal (Client) connects to the server, he closes the connection immediately and then not process the data .. . I saw nothing that works directly on the event "OnDataAvailable" have any examples of using WSocketThrdServer? as I told a client that uses the component WSocket not of error, plus the client developed in C for POS terminals that problem happens ...
Thank you again! 2013/4/26 Angus Robertson - Magenta Systems Ltd <an...@magsys.co.uk> > > I am not able to use the component TWSocketServer with POS > > terminals (do > > not have access to sources of client developed in C), the error > > occurs after the connection "OverbyteIcsWSocketS" > > What error? > > > > I need to do is receive multiple simultaneous connections to these > > terminals make query on a sql server database and returns the > > contents > > You can not use threads with SocketServer client responses, although you > can use a thread to prepare a response and send it from the main thread, > look at the FTP server which uses threads to index directories and > calculate MD5 hashes, but still uses SocketServer. > > My ICS web server is driven by a SQL database, but most queries takes 20 > to 100ms so I did not bother to use threads, effectively the server stops > for that moment, but still supports 100 or more active sessions. > > If you really need client threads, you should be using TWSocketThrdServer. > > > Angus > > > > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be