diff --git a/Tutorial:-Sockets.textile b/Tutorial:-Sockets.textile index 1b72cc6..9ff71b7 100644 --- a/Tutorial:-Sockets.textile +++ b/Tutorial:-Sockets.textile @@ -5,7 +5,7 @@ Then you need to create and initialize a TSocket object
After that you can use s.connect("addr", TPort(80)) to connect to a server
Once you connect to a server, you can send and receive messages to/from the server by using s.send("Message") to send, and s.recv() to receive. -

+
 import sockets, strutils
 
 when not defined(strutils.toStringSep):
@@ -68,4 +68,4 @@ while True:
     elif data.split()[3] == ":!totalmem":
       var msg = "Total memory: " & formatSize(int64(getTotalMem()))
       s.send("PRIVMSG " & data.split()[2] & " :" & msg & "\c\L")
-
+