SOCKETS_OK type=function