Python IRC client

I am writing python code for an IRC client.

I want to understand how the client and the IRC server communicate with each other.

Can someone give me a good tutorial or IRC communication architecture to understand it in depth?

thank

+5
source share
3 answers

If you want to invent a wheel, you need to implement the RFC and do it all from scratch.

If you do not want to do this and require some level of abstraction to facilitate your development (and what you need), see Twisted .

There is also a Python IRC library .

+9
source

IRC RFC , , IRC, .

* nix (, ssh -, Linux).

IRC- "nc". RFC .

$ nc wright.freenode.net 6667
PASS whateveryoulike
NICK yournick
USER username 0 * :Real Name

, . : (ala NickServ), , 3.1 RFC 2812 IRC Client Protocol.

:

JOIN #yourtestchannel

, :

WHO #yourtestchannel

:

PRIVMSG yournick Message Text Here

( msg):

PRIVMSG #yourtestchannel Message Text Here

, IRC-. msg , "" IRC, , .

, - :

:SomeDude28!SomeDude28@hoststring-with_various_parts PRIVMSG #channel :Hey guys, what up?

RFC, , , , , , .

, , PONG PING, .

+11

RFC. , - - .

IRC .

+5

All Articles