PDA

Просмотр полной версии : Проблема telnet + IRC



Яр
16.04.2005, 15:28
Есть IRC-сервер, есть telnet-клиент, и есть RFC 1459.
Пытаюсь:


$ telnet milk 6667
Trying 192.168.174.101...
Connected to milk.
NOTICE AUTH :*** Looking up your hostname
NOTICE AUTH :*** Checking Ident
NOTICE AUTH :*** Couldn't look up your hostname

PASS sekret
NICK Test
PING :1315039896
USER Test * * :Test Testovich
TIME
:milko.botizmo.servo.yuyu.hz 451 Test Test :Register first.
JOIN #main
:milko.botizmo.servo.yuyu.hz 451 Test Test :Register first.

QUIT
Connection closed by foreign host.



Жирным выделен мой ввод.
Сервер - ircu.
Какие вариации USER не пробую -- результат один. Register first.

mIRC, BitchX, и прочее коннектится без проблем.
В чём может быть трабл? Может в иденте? Вроде без него можно коннектиться.

Спасибо.

Broken Sword
16.04.2005, 18:50
непойму - ты на том серваке зареген или нет? оно ж пишет ясно - зарегся.

mancurt
17.04.2005, 03:32
MYSECRETSERVER:~$ telnet 192.168.174.101 6667
Trying 192.168.174.101...
Connected to 192.168.174.101.
Escape character is '^]'.
NOTICE AUTH :*** Looking up your hostname
NOTICE AUTH :*** Checking Ident
NOTICE AUTH :*** Couldn't look up your hostname
USER Telnet MYSECRETSERVER server :Test User Name
NICK testusername
PING :271238022
PONG 271238022
:milko.botizmo.servo.yuyu.hz 001 testusername :Welcome to the MegoMilk IRC Network, testusername
[skip]
JOIN #main
:[email protected] JOIN #main
[skip]
:[email protected] PRIVMSG #main :Another test
PRIVMSG #main :And me test too


текст у вас на серваке:

[04:46]<mancurt> Another test
[04:47]<testusername> And me test too

mancurt
17.04.2005, 03:41
When a PING message is received, the appropriate PONG message MUST be sent as reply

(с) http://xirc.ru/rfc/2812.txt


Internet Relay Chat&#58; Client Protocol

3.7.2 Ping message

Command&#58; PING
Parameters&#58; <server1> &#91; <server2> &#93;

The PING command is used to test the presence of an active client or
server at the other end of the connection. Servers send a PING
message at regular intervals if no other activity detected coming
from a connection. If a connection fails to respond to a PING message
within a set amount of time, that connection is closed. A PING
message MAY be sent even if the connection is active.

When a PING message is received, the appropriate PONG message MUST be
sent as reply to <server1> &#40;server which sent the PING message out&#41;
as soon as possible. If the <server2> parameter is specified, it
represents the target of the ping, and the message gets forwarded
there.

Examples&#58;

PING tolsun.oulu.fi ; Command to send a PING message to
server

PING WiZ tolsun.oulu.fi ; Command from WiZ to send a PING
message to server "tolsun.oulu.fi"

PING &#58;irc.funet.fi ; Ping message sent by server
"irc.funet.fi"

3.7.3 Pong message

Command&#58; PONG
Parameters&#58; <server> &#91; <server2> &#93;

PONG message is a reply to ping message. If parameter <server2> is
given, this message MUST be forwarded to given target. The <server>
parameter is the name of the entity who has responded to PING message
and generated this message.

Example&#58;

PONG csd.bu.edu tolsun.oulu.fi ; PONG message from csd.bu.edu to
tolsun.oulu.fi

Яр
17.04.2005, 08:09
mancurt, Огромное спасибо! :)
не дочитал, что на пинг надо обязательно отвечать...