I am looking to create a TCP client/server application and I have been told
ICS is the easiest to use (indy is quite easy but no data recieve for client
threw me for a spin).

I cannot find any TCP client example, but the TCP Server example I have been
looking at confuses me a bit as to how it works. There is one "TTcpSrvClient
= class(TWSocketClient)",
and the comment above states something along the lines of the setup using
this will automatically create new clients as they connect (from what I
understand), but I don't quite
get how this works? I am used to using arrays of things and tracking them in
that fashion.

As I want many clients to connect to a server (and some way of adding
strings and other things to each client as a read/write property, like how
you use Record Arrays for storing username etc), and track/reference
them by some kind of index.

Something like:

Client attempts a connection....
Server on connect fires up.....
Client has sent username and password....
Server checks username and password.... and sends their index to them if
successfull....
Client sends data along with the assigned index....
When data is available, internally I now know who wants what and why (using
the index).

I hope this makes sense, any help is greatly appreciated and if any
clarification is necessary let me know.

Also this is not an urgent problem or anything it's only for a personal
project so take your time with a reply :).

-- 
http://www.chri-soft.com
--
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

Reply via email to