Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Looking for very basic indy 10 server examples
| Subject: | Looking for very basic indy 10 server examples |
| Posted by: | "Mark Smith" (marksmi..@jungle-monkey.com) |
| Date: | Thu, 24 Jan 2008 02:24:32 |
I'm trying to learn how to use indy. A lot of the examples I can find
online assume I am embedding the indy component within a form.
I just want a simple console application to be able to act as a server.
Once I can talk to that with telnet I was going to write a basic client
and work my way up from there.
I can't even get as far as creating the server:
program ServerTest;
{$APPTYPE CONSOLE}
uses
SysUtils,IdTCPServer;
var
svr:TIdTCPServer;
begin
svr:= idtcpserver.create();
end.
It seems to expect an owner in the constructor, I am very new to delphi
but this does not seem to make sense within the context of a console app.
Can someone give me the bare bones of a server that accept connections
on a given port and prints whatever it receives on the screen?
Thanks