Socket functionality enhanced