added functions from enet 1.3.8