socket functions compiled in