mod: remove some socket_* function