native enum EResult as Steamworks.Result;

native class ISteamNetworkingSockets
{
    inline SteamNetConnectionRealTimeStatus_t GetConnectionInfo( HSteamNetConnection handle )
    {
        SteamNetConnectionRealTimeStatus_t status;
        self->GetConnectionRealTimeStatus( handle, &status, 0, nullptr );
        return status;
    }

	inline void StartAuthentication()
	{
	    self->InitAuthentication();
	}
	
	inline void BeginRequestFakeIP()
	{
	    self->BeginAsyncRequestFakeIP( 1 );
	}
	
    inline void ReleaseMessage( void* message )
    {
        SteamNetworkingMessage_t* msg = (SteamNetworkingMessage_t*)message;
        msg->Release();
    }
}
