[svn r484] Added gmyth_util_get_channel_list to the gmyth_util.h; removes static_mutex locking/unlocking from the gmyth_util.
7 def __init__(self, config):
9 self.port = int(config.get("Comm", "port"))
12 self.tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
13 self.tcp.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
14 self.tcp.bind( (self.host, self.port) )
17 def getMsg(self, size):
18 return self.con.recv(size)
20 def sendMsg(self, msg):
21 self.con.send(msg + "\n")
23 def Ack(self, command):
24 msg = "[%s] Command %s received" % (lib.now(), command)
28 self.con, self.client = self.tcp.accept()
29 print "[%s] Received request from ip=%s" % (lib.now(), self.client )
30 return (self.con, self.client)
32 def disconnect_client(self, connection):