Search for a simple demo INDY

I need a simple connection to a client server in which I can use the basic structure and never look again. I want to focus on my application and have a simple functional API according to:

SendStringFromClentToServer() : String; // Returns the server result string // or "" on etror (or throws exception) ProcessReceivedStringAtServer(); // And send result string 
  • I need to know if the server answered or not; and if so, which row of the result was
  • It would be nice if serer used the Indy Command Handler, but was not vital, since I can independently analyze the resulting string.
  • it’s also β€œnice to have” and where the INDY daemons do not seem to cover it (except for the reported SMTP demo, which I cannot find) it would be for the server to initiate communication with the client, IF not, I might have a client survey or the server will send its message as a response to the pulse of the client that I need to add.

Thanks for the 1,000,000 in advance. Indy 10 URL or demo name will suffice


Update: I really do not want my application to know anything about sockets (other than specifying an IP address and port number).

I do not want to know that there is a connection, not to mention whether it is always open or connected with each transfer request (and, if it is always open, I want it to open automatically again if it closes). At best, a logical value for those who want to indicate "keep the connection open."


Update to update: Should I close this question and send a message to another, is it better to rephrase it? Of course, I'm not the only one who β€œjust wants to send some data to another computer,” and anyway, how is this done? Isn't there an existing structure? How do you start each new project? Do you have a simple dummy project that handles plumbing to which you are adding a new application? Do you know about this?

+6
source share

Source: https://habr.com/ru/post/906261/


All Articles