Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: IRC Component and Indy 9
| Subject: | Re: IRC Component and Indy 9 |
| Posted by: | "Danila Vershinin" (profyprepatyandexdotru) |
| Date: | Sat, 20 May 2006 10:47:17 |
Thank you. Now I've installed Indy 10 and can not figure out how to make
TIdIRC component work. With or without assigning TIdIOHandler to it, it
doesn't seem to connect to the server and join a channel..
I've tried the following:
dropped TIdIRC component onto the form, set NickName, alternative nickname,
host. On a button click I called: IdIRC1.Connect;
In OnIsOnIRC I called IdIRC.Join('#mychannel'). No result.
To track connection status to the IRC server I've added memo to the form and
on the ircraw event added:
procedure TForm1.IdIRC1Raw(ASender: TIdContext; AIn: Boolean;
AMessage: String);
begin
Memo1.Lines.Add(AMessage);
end;
When I run the application it shows the following:
NICK Danilka
USER 0 * :
NOTICE AUTH :*** Looking up your hostname...
And no more info. stucks on "looking up hostname"
Adding TIdIOHandlerStream onto the form and assigning it to TIdIRC object
(not setting any properties for TIdIOHanlderStream) makes memo show no raw
commands, now I wonder why.
Then I've tried using TIdIOHandlerStack since it allows connections using
specified socks info (TIdSocksInfo) (which is preferrable). Without setting
any properties to it, no raw commands shown (no irc connection) as with
previous IOHanlder component. Then I've added TIdSocksInfo object and
assigned it to TIdIOHandlerStack, specifed proxy port and host, socks
version for a proxy server which worked with other components. Still doesn't
work. What is it am I doing wrong, or what other properties should I change
to make component successfully connect to IRC server and join a channel?