Re: Indy Server -> client




"Thomas Mueller" <nospam@xxxxxxxxxxxx> wrote in message
news:45e5e716@xxxxxxxxxxxxxxxxxxxxxxxxx

I am trying to use the Indy components (version 10) in a way
that they apparently were not meant for:

Since you have not described what you are actually doing with them,
there is no way to know if you are using them correctly or not.

I have got a server app that can accept connections from multiple
clients. But in contrast to the normal way of the clients sending a
request and the server answering it, it want the server to keep the
connections and send requests to the clients to which they may or
may not answer.

That is perfectly fine to do, and Indy supports that model. There is
nothing in the TCP spec that says data has to flow from the client to
the server initially. TCP is bi-directional. Either party can write
to the socket at any time.

client ----connects to-------> server
client <---receives command--- server
client ----answers-----------> server

Simply write your command to the client in the server's OnConnect or
OnExecute event, and then read the reply back immediately.

I hope you get what I mean. Everything in Indy seems to be geared
toward making this impossible.

That is not true, not even close. What you are asking for is very
easy to do with Indy.


Gambit


.



Relevant Pages

  • RE: Users Cant Access Documents on Server
    ... Thanks for using the SBS newsgroup. ... As well as we know, if a workstation would not access network shares, then ... Leave the Default Gateway of the internal NIC blank of the server box. ... Clients That Require SMB Signing ...
    (microsoft.public.windows.server.sbs)
  • Re: Users Cant Access Documents on Server
    ... my computer to the network on the server. ... Connection Wizard none of the computers were listed. ... The Mac clients can not communicate with the server box. ... > Error Messages When You Open or Copy Network Files on Windows XP SP1 ...
    (microsoft.public.windows.server.sbs)
  • Re: [SLE] SMTP authentication
    ... So eventhough my local SMTP server dials up to the internet with a certain username and password, that same username and password would not be used as authentication between my local SMTP server and the ISP's one, should it be used as a relay? ... either defer all outgoing mails until you connect to the internet, then flush out all the mails in the queue. ... Your local server would use an external program like fetchmail to poll the mailserver of your ISP, download the mails and feed them to Postfix. ... The test does NOT say "All clients must be in mynetworks, ...
    (SuSE)
  • RE: VPN Clients Not Registering in AD DNS
    ... via VPN, the DNS records of the VPN clients are unable to be registered. ... Windows 2003 server? ... please let me know whether the clients get the IP ...
    (microsoft.public.windows.server.sbs)
  • Re: Users Cant Access Documents on Server
    ... > then add my computer to the network on the server. ... Did you not see the computers in the Server Management taskpad section? ... The Mac clients can not communicate with the server box. ... >> Error Messages When You Open or Copy Network Files on Windows XP SP1 ...
    (microsoft.public.windows.server.sbs)