|
|
@ -26,13 +26,14 @@ class ircd:
|
|
|
|
|
|
|
|
|
|
|
|
class listener:
|
|
|
|
class listener:
|
|
|
|
ssl = False
|
|
|
|
ssl = False
|
|
|
|
|
|
|
|
server = None
|
|
|
|
client_list = []
|
|
|
|
client_list = []
|
|
|
|
client_map = {}
|
|
|
|
client_map = {}
|
|
|
|
select_inputs = []
|
|
|
|
select_inputs = []
|
|
|
|
select_outputs = []
|
|
|
|
select_outputs = []
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
def __init__(self, server):
|
|
|
|
pass
|
|
|
|
self.server = server
|
|
|
|
|
|
|
|
|
|
|
|
def start(self, interface, port, cert_path, key_path):
|
|
|
|
def start(self, interface, port, cert_path, key_path):
|
|
|
|
bindsocket = socket.socket()
|
|
|
|
bindsocket = socket.socket()
|
|
|
@ -207,5 +208,7 @@ class presence:
|
|
|
|
status = "none"
|
|
|
|
status = "none"
|
|
|
|
joined = 0
|
|
|
|
joined = 0
|
|
|
|
|
|
|
|
|
|
|
|
l = listener()
|
|
|
|
server = ircd()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
l = listener(server)
|
|
|
|
l.start("0.0.0.0", 6667, "sample.cert", "sample.key")
|
|
|
|
l.start("0.0.0.0", 6667, "sample.cert", "sample.key")
|
|
|
|