Add missing 'self' parameters
diff --git a/Doc/howto/sockets.tex b/Doc/howto/sockets.tex
index 4da92a8..0607a93 100644
--- a/Doc/howto/sockets.tex
+++ b/Doc/howto/sockets.tex
@@ -222,9 +222,11 @@
                     socket.AF_INET, socket.SOCK_STREAM)
             else:
                 self.sock = sock
-        def connect(host, port):
+
+        def connect(self, host, port):
             self.sock.connect((host, port))
-        def mysend(msg):
+
+        def mysend(self, msg):
             totalsent = 0
             while totalsent < MSGLEN:
                 sent = self.sock.send(msg[totalsent:])
@@ -232,7 +234,8 @@
                     raise RuntimeError, \\
                         "socket connection broken"
                 totalsent = totalsent + sent
-        def myreceive():
+
+        def myreceive(self):
             msg = ''
             while len(msg) < MSGLEN:
                 chunk = self.sock.recv(MSGLEN-len(msg))