Advertisement
Azelphur

Untitled

Nov 18th, 2011
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. # socketconn.py
  2. import znc
  3.  
  4. class networkconn(znc.Module):
  5.     def OnModCommand(self, cmd):
  6.         self.PutStatus("Sending message")
  7.         sock = self.CreateSocket()
  8.         sock.Connect('127.0.0.1', 1079)
  9.         sock.Write("Hello\n")
  10.         sock.Close()
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement