use a GThread for the connection