Question: how do I address outbound data from Server to a
specific client. I can see how I determine which Client has sent
data to Server (e.g. reading Socket.RemoteAddress) but I can't find how I address asynchronous outbound from Server.
Thanks.
John
Paul
"John" <g3...@aol.com> wrote in message news:3cba95eb_1@dnews...
Thanks for the reply. I understand how to find what clients
are connected to the Server. What I can't seem to find is how I
address data *outbound* from the Server to a specific Client.
Any assistance appreciated!
Thanks
John
John, you may want to ask in delphi.internet.winsock.
As i understand sockets (which is only superficially) it is *always* the
client that starts a conversation. It sends something to the server, then
waits for a reply (optionally). It will not wait for a conversation
initialized by the server (even if there is an existing connection). So, to be
able to have a "backlink" you need a TServerSocket on the client side as well
the listens for connects from a TClientsocket the server creates for the
backlink.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
Most protocols may work that way, but generally, clients and serve are
alike, meaning, both can send and receive using the same methods. The only
difference is, that a client connects to a port and a server listens to a
port. If the connection is established, you can do the communication in both
ways.
For TServerSocket use:
ServerSocket1.Connections[I].SendText('Hello client...'),
where "I" describes the client you want to use...
--
Kyoto Now !
I think you just gave me the clue I needed! Many thanks.
John.
I can send you an example if you wish. The conversation is initiated by the
client in this example but you'll get the idea.
Paul
"John" <g3...@aol.com> wrote in message news:3cbb4ce3$1_2@dnews...
Andy
--
Kyoto Now !
Paul
"Andy M." <andy.m...@gmx.net> wrote in message news:3cbbf65f_1@dnews...