GtSocket porting.