Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: TCP client/server

www.cryer.info
Managed Newsgroup Archive

Re: TCP client/server

Subject:Re: TCP client/server
Posted by:"Jamie Dale" (j.da..@turboz.net)
Date:Tue, 6 Jun 2006 01:14:42

> Try this on the server side: AThread.Connection.Disconnect;
>
> On the client Side:
> Try
>    Response := IdTCPClient1.ReadLn;
> Except
> //"Connection Closed Gracefully" is handled here but nothing is actually
> done and no message displayed.
> end;

Sorry I forgot you are only writing and not reading lol.

You should be able to simply use:
Try
TCPClient.WriteLn('message');
Except
//Ignore error here
end;

Again, sorry my mistake lol.

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive