Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype BufferId = BufferId {
- _unBufferId :: Int32
- newtype NodeId = NodeId {}
- newtype SyncId = SyncId {}
- data SCServerState = SCServerState {
- _scServerState_socketConnectStarted :: TVar Bool
- _scServerState_socket :: !(TMVar Socket)
- _scServerState_listener :: !(TMVar ThreadId)
- _scServerState_availableBufferIds :: !(TVar [BufferId])
- _scServerState_maxBufIds :: !(TVar Int32)
- _scServerState_availableNodeIds :: !(TVar [NodeId])
- _scServerState_availableSyncIds :: !(TVar [SyncId])
- _scServerState_syncIdMailboxes :: !(TVar (Map SyncId (MVar ())))
- _scServerState_serverMessageFunction :: !(TVar (OSC -> IO ()))
- _scServerState_definedSDs :: !(TVar (Set (SDName, Int)))
- _scServerState_connProtocol :: TVar ConnProtocol
- data ConnProtocol
- setServerClientId :: SCServerState -> Int32 -> IO ()
- setServerMaxBufferIds :: SCServerState -> Int32 -> IO ()
- numberOfSyncIdsToDrop :: Int
- makeEmptySCServerState :: IO SCServerState
- getNextAvailable' :: SCServerState -> (SCServerState -> TVar [a]) -> IO a
- getNextAvailables' :: SCServerState -> Int -> (SCServerState -> TVar [a]) -> IO [a]
Documentation
data SCServerState Source #
SCServerState | |
|
Instances
data ConnProtocol Source #
Instances
Eq ConnProtocol Source # | |
Defined in Vivid.SCServer.State (==) :: ConnProtocol -> ConnProtocol -> Bool # (/=) :: ConnProtocol -> ConnProtocol -> Bool # | |
Ord ConnProtocol Source # | |
Defined in Vivid.SCServer.State compare :: ConnProtocol -> ConnProtocol -> Ordering # (<) :: ConnProtocol -> ConnProtocol -> Bool # (<=) :: ConnProtocol -> ConnProtocol -> Bool # (>) :: ConnProtocol -> ConnProtocol -> Bool # (>=) :: ConnProtocol -> ConnProtocol -> Bool # max :: ConnProtocol -> ConnProtocol -> ConnProtocol # min :: ConnProtocol -> ConnProtocol -> ConnProtocol # | |
Read ConnProtocol Source # | |
Defined in Vivid.SCServer.State readsPrec :: Int -> ReadS ConnProtocol # readList :: ReadS [ConnProtocol] # | |
Show ConnProtocol Source # | |
Defined in Vivid.SCServer.State showsPrec :: Int -> ConnProtocol -> ShowS # show :: ConnProtocol -> String # showList :: [ConnProtocol] -> ShowS # |
setServerClientId :: SCServerState -> Int32 -> IO () Source #
setServerMaxBufferIds :: SCServerState -> Int32 -> IO () Source #
If you've started the SC server with a non-default number of buffer ids, (e.g. with the "-b" argument), you can reflect that here
Note that the buffer ids start at 512, to not clash with any that another client (e.g. sclang) has allocated
getNextAvailable' :: SCServerState -> (SCServerState -> TVar [a]) -> IO a Source #
getNextAvailables' :: SCServerState -> Int -> (SCServerState -> TVar [a]) -> IO [a] Source #