Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

noko

Name: Anonymous 2011-02-21 5:44

Hi, I started writing an IRC client.

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

s.connect(('irc.freenode.net', 6667))
while 'No Ident' not in repr(s.recv(1024)):
    pass

s.send(b'NICK pyIRC')
s.send(b'USER pyIRC 8 *  : pyIRC')
while 'MODE pyIRC' not in repr(s.recv(1024)):
    pass

print(repr(s.recv(1024)))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List