Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # socketconn.py
- import znc
- class networkconn(znc.Module):
- def OnModCommand(self, cmd):
- self.PutStatus("Sending message")
- sock = self.CreateSocket()
- sock.Connect('127.0.0.1', 1079)
- sock.Write("Hello\n")
- sock.Close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement