Fix socket interface