TIdIRCServer我具体也没有用过,不过我看了一下帮助!!
我觉得,TIdIRCServer是用TIdTCPClient来连接的!!
然后,通过TIdTCPClient给TIdIRCServer发送消息,然后TIdIRCServer根据相应的命令来执行一定的操作!!以下是TIdIRCServer的帮助。
具体的帮助你可以上
http://www.nevrona.com/Indy/
去下载!!
Specifies an Internet Relay Chat Protocol server.
TIdIRCServer = class(TIdTCPServer)
Description
TIdIRCServer is a TIdTCPServer descendant that provides a server implementation of the Internet Relay Chat (IRC) Protocol as described in the Internet Standards document:
Internet Relay Chat Protocol (IRC), RFC 1459, by J. Oikarinen and D. Reed, May 1993
The IRC protocol provides users with a way to chat among themselves in "chat rooms". The IRC protocol is a text-based conferencing protocol that uses TCP/IP as the network transport.
A typical IRC environment involves a single process (the server) that forms a central point for client (or other server) connections, performing the required message delivery/multiplexing and other functions. IRC allows various forms of message delivery including user-to-user, user-to-list, user-to-group, user-to-server, and server-to-server communication modes.
The only network configuration allowed for IRC servers is that of a spanning tree where each server acts as a central node for the rest of the network visible to the server.
An IRC client can be any socket-enable application capable of connecting to an IRC server that is not already an IRC server.
TIdIRCServer uses the standard port number IdPORT_IRC reserved for the IRC protocol to listen for client connections. TIdIRCServer, like TIdTCPServer, is a multithreaded application where new connections are respresented by a TIdPeerThread that is serviced by the TIdIRCServer.
TIdIRCServer recognizes the following IRC commands as defined in the RFC specification:
ADMIN
AWAY
CONNECT
ERROR
INFO
INVITE
ISON
JOIN
KICK
KILL
LINKS
LIST
MODE
NAMES
NICK
NOTICE
OPER
PART
PASS
PING
PONG
PRIVMSG
QUIT
REHASH
RESTART
SERVER
SQUIT
STATS
SUMMON
TIME
TOPIC
TRACE
USER
USERHOST
USERS
VERSION
WALLOPS
WHO
WHOIS
WHOWAS
TIdIRCServer provides an event handler architecture for all IRC commands that allow the IRC server application to determine the appropriate mechanism used to respond to an IRC command. TIdIRCServer does not provide an implementation for the event handlers.