public API functions now begin with lsock_api_