Article View: borland.public.cppbuilder.internet.socket
Article #4749TIdTCPServer Command Handler
From: Ronny
Date: Wed, 29 Dec 2004 18:24
Date: Wed, 29 Dec 2004 18:24
11 lines
1414 bytes
1414 bytes
Hi everybody. I have a Simple question. I'm using Indy and I'm doing a chat server with TCPServer. I'm using the command handlers way to do it. 1. So if I have understand the thing correctly, I don't need an OnExecute method. Right ? 2. what is the best way to handle te disconnection from clients ? (The client sent a QUIT message to say that he leaves the chat) Do I need an onDisconnect method ? or it is better to do all in a command hadler for the QUIT command ? Thank you very much. Ron.
Technical Details
Message-ID:
<41d2f642$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d17d5067aebc2759,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ronny" <potapenko@chez.com> Sender: "Ronny" <potapenko@chez.com> Reply-To: "Ronny" <potapenko@chez.com> Subject: TIdTCPServer Command Handler Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 81.240.186.129 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41d2f642$1@newsgroups.borland.com> Date: 29 Dec 2004 10:24:02 -0800 X-Trace: newsgroups.borland.com 1104344642 207.105.83.66 (29 Dec 2004 10:24:02 -0800) Lines: 11 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail