|
From: | ProgVal |
Subject: | Re: [glob2-devel] Adding a good quit to the IRC integrated client |
Date: | Mon, 9 Aug 2010 10:55:32 +0200 |
:ProgVal|telnet1!~address@hidden JOIN :#glob2 <= The server says me I join
:ProgVal|telnet2!~address@hidden JOIN :#glob2 <= The server says me someone else join
:ProgVal|telnet2!~address@hidden QUIT : <= The server says me someone else quit
QUIT toto <= I quit
ERROR :Closing Link: ars57-1-88-175-48-15.fbx.proxad.net () <= The server says me I quit
Connection closed by foreign host. <= The server closes the connection
That, sir, is a great idea.About the sleep though, doesn't the server send out a response that the client can wait for? If this is all TCP/IP, I'm fairly certain it does. We could look at an open-source IRC client and look how they do it, and I don't think it will be done using sleep().
On 7 August 2010 14:56, ProgVal <address@hidden> wrote:We also can replace the ident by "glob2-<version>", it'll make easier to everybody to know someone's version2010/8/7 ProgVal <address@hidden>
Yes, it can be more short (0.1 sec may be enough). The essential is that the server must understand the client will quit, before the client close the socket.
2010/8/6 Stéphane Magnenat <address@hidden>
On 06/08/10 15:54, ProgVal wrote:
Hello,
When disconnecting, glob2 IRC client just closed the socket, but it is
not the properest method given by the IRC protocol.
The better is to use the QUIT command, fellowed by a quit message. This
quit message is display on the most of the networks, but not on OFTC,
so, we'll just see
The sleep() delay is bad. Is the sleep necessary? If so, is it required to be so long? If so, we should do it later in IRC::step().
Have a nice day,
Stéphane
--
http://stephane.magnenat.net
_______________________________________________
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel
_______________________________________________
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel
_______________________________________________
glob2-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/glob2-devel
[Prev in Thread] | Current Thread | [Next in Thread] |