Socket checking