| Copyright | (c) 2018-2019 Commonwealth Scientific and Industrial Research Organisation |
|---|---|
| License | BSD3 |
| Maintainer | dave.laing.80@gmail.com, jack.kelly@data61.csiro.au |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Reflex.Backend.Socket.Connect
Description
Use connect to attempt a connection to a remote endpoint, and get an
that tells you whether or
not it worked.Event t (Either SetupError Socket)
Synopsis
- connect :: (Reflex t, PerformEvent t m, TriggerEvent t m, PostBuild t m, MonadIO (Performable m), MonadIO m) => Maybe HostName -> ServiceName -> m (Event t (Either SetupError Socket))
Documentation
Arguments
| :: (Reflex t, PerformEvent t m, TriggerEvent t m, PostBuild t m, MonadIO (Performable m), MonadIO m) | |
| => Maybe HostName | Host to connect to. If |
| -> ServiceName | Service (port number or service name). See the manpage for getaddrinfo. |
| -> m (Event t (Either SetupError Socket)) | This event will fire exactly once. |
Connect to a remote endpoint. The connection happens in a background thread.