def connect(self, connectionInfo, elementListener, onConnected):
super(GLibUnixTransport, self).connect(
connectionInfo, elementListener, onConnected)
fd = self._socket.fileno()
io_channel = GLib.IOChannel.unix_new(fd)
self._watch_id = GLib.io_add_watch(
io_channel, GLib.PRIORITY_DEFAULT, GLib.IO_IN, self._socket_ready)
评论列表
文章目录