View Source ow_enet (overworld v2.0.0)

Summary

Functions

Handler is initialized for any new connection and logs the foreign IP

Starts the ENet connection handler with any initial state

Clean up the ENet handler by calling the session's disconnect callback

Types

-type peerinfo() :: map().
-type qos() :: {reliable | unreliable | unsequenced | undefined, non_neg_integer() | undefined}.

Functions

Link to this function

code_change(OldVsn, PeerInfo, Extra)

View Source
Link to this function

handle_call(_, From, PeerInfo)

View Source
Link to this function

handle_cast(Msg, PeerInfo)

View Source
Link to this function

handle_info(Msg, PeerInfo)

View Source
-spec init([peerinfo()]) -> {ok, peerinfo()}.

Handler is initialized for any new connection and logs the foreign IP

-spec start(map()) -> gen_server:start_ret().

Starts the ENet connection handler with any initial state

-spec terminate(any(), peerinfo()) -> ok.

Clean up the ENet handler by calling the session's disconnect callback