Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Servable UDPServer Source # | |
Defined in Metro.UDPServer newServer :: MonadIO m => ServerConfig UDPServer -> m UDPServer # servOnce :: MonadUnliftIO m => UDPServer -> (Maybe (SID UDPServer, TransportConfig (STP UDPServer)) -> m ()) -> m () # onConnEnter :: MonadIO m => UDPServer -> SID UDPServer -> m () # onConnLeave :: MonadIO m => UDPServer -> SID UDPServer -> m () # | |
type STP UDPServer Source # | |
Defined in Metro.UDPServer | |
type SID UDPServer Source # | |
Defined in Metro.UDPServer | |
data ServerConfig UDPServer Source # | |
Defined in Metro.UDPServer |
newClient :: (MonadUnliftIO m, Transport tp, Show nid, Eq nid, Hashable nid, Eq k, Hashable k, GetPacketId k rpkt, RecvPacket rpkt) => (TransportConfig UDPSocket -> TransportConfig tp) -> String -> nid -> u -> (rpkt -> m Bool) -> SessionT u nid k rpkt tp m () -> ServerT UDPServer u nid k rpkt tp m (Maybe (NodeEnv1 u nid k rpkt tp)) Source #