|
|
|
|
|
|
| Synopsis |
|
|
|
|
| Connections
|
|
| type Connection = ForeignPtr ConnectionTag |
|
| data BusType |
| Constructors | | Session | The login session bus.
| | System | The systemwide bus.
| | Starter | The bus that started us, if any.
|
|
|
|
| busGet :: BusType -> IO Connection |
| Connect to a standard bus.
|
|
| send |
|
|
| sendWithReplyAndBlock |
|
|
| flush :: Connection -> IO () |
| Block until all pending messages have been sent.
|
|
| close :: Connection -> IO () |
|
| withConnection :: BusType -> (Connection -> IO a) -> IO a |
| Open a connection and run an IO action, ensuring it is properly closed when
you're done.
|
|
| data RequestNameReply |
| Constructors | | PrimaryOwner | | | InQueue | | | Exists | | | AlreadyOwner | |
|
|
|
| busRequestName :: Connection -> String -> [Int] -> IO RequestNameReply |
|
| Produced by Haddock version 0.7 |