Added socket help methods