| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Vivid.SCServer.State
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
Constructors
| BufferId | |
| Fields 
 | |
data SCServerState Source #
Constructors
| SCServerState | |
| Fields 
 | |
Instances
data ConnProtocol Source #
Constructors
| ConnProtocol_UDP | |
| ConnProtocol_TCP | 
Instances
| Read ConnProtocol Source # | |
| Defined in Vivid.SCServer.State Methods readsPrec :: Int -> ReadS ConnProtocol # readList :: ReadS [ConnProtocol] # | |
| Show ConnProtocol Source # | |
| Defined in Vivid.SCServer.State Methods showsPrec :: Int -> ConnProtocol -> ShowS # show :: ConnProtocol -> String # showList :: [ConnProtocol] -> ShowS # | |
| Eq ConnProtocol Source # | |
| Defined in Vivid.SCServer.State | |
| Ord ConnProtocol Source # | |
| Defined in Vivid.SCServer.State Methods compare :: ConnProtocol -> ConnProtocol -> Ordering # (<) :: ConnProtocol -> ConnProtocol -> Bool # (<=) :: ConnProtocol -> ConnProtocol -> Bool # (>) :: ConnProtocol -> ConnProtocol -> Bool # (>=) :: ConnProtocol -> ConnProtocol -> Bool # max :: ConnProtocol -> ConnProtocol -> ConnProtocol # min :: ConnProtocol -> ConnProtocol -> ConnProtocol # | |
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 #