License | GPL-3 |
---|---|
Maintainer | matt |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data MptcpConnection = MptcpConnection {}
- mpconSubflows :: Lens' MptcpConnection (Set MptcpSubflow)
- mpconServerConfig :: Lens' MptcpConnection MptcpEndpointConfiguration
- mpconClientConfig :: Lens' MptcpConnection MptcpEndpointConfiguration
- data MptcpSubflow = MptcpSubflow {}
- data MptcpEndpointConfiguration = MptcpEndpointConfiguration {}
- mecKey :: Lens' MptcpEndpointConfiguration Word64
- mecToken :: Lens' MptcpEndpointConfiguration Word32
- mecVersion :: Lens' MptcpEndpointConfiguration Int
- showMptcpConnectionText :: MptcpConnection -> Text
- mptcpConnAddSubflow :: MptcpConnection -> MptcpSubflow -> MptcpConnection
- mptcpConnRemoveSubflow :: MptcpConnection -> MptcpSubflow -> MptcpConnection
- getMasterSubflow :: MptcpConnection -> Maybe MptcpSubflow
- getSubflowFromStreamId :: MptcpConnection -> StreamIdTcp -> Maybe MptcpSubflow
- tokenBelongToConnection :: Word32 -> MptcpConnection -> Bool
Types
data MptcpConnection Source #
Holds all necessary information about a multipath TCP connection TODO add an imcomplete constructor ?
MptcpConnection | |
|
Instances
Eq MptcpConnection Source # | |
Defined in Net.Mptcp.Connection (==) :: MptcpConnection -> MptcpConnection -> Bool # (/=) :: MptcpConnection -> MptcpConnection -> Bool # | |
Show MptcpConnection Source # | |
Defined in Net.Mptcp.Connection showsPrec :: Int -> MptcpConnection -> ShowS # show :: MptcpConnection -> String # showList :: [MptcpConnection] -> ShowS # |
data MptcpSubflow Source #
Extension of TcpConnection
master subflow has implicit addrid 0
TODO add start/end dates ?
MptcpSubflow | |
|
Instances
Eq MptcpSubflow Source # | |
Defined in Net.Mptcp.Connection (==) :: MptcpSubflow -> MptcpSubflow -> Bool # (/=) :: MptcpSubflow -> MptcpSubflow -> Bool # | |
Ord MptcpSubflow Source # | |
Defined in Net.Mptcp.Connection compare :: MptcpSubflow -> MptcpSubflow -> Ordering # (<) :: MptcpSubflow -> MptcpSubflow -> Bool # (<=) :: MptcpSubflow -> MptcpSubflow -> Bool # (>) :: MptcpSubflow -> MptcpSubflow -> Bool # (>=) :: MptcpSubflow -> MptcpSubflow -> Bool # max :: MptcpSubflow -> MptcpSubflow -> MptcpSubflow # min :: MptcpSubflow -> MptcpSubflow -> MptcpSubflow # | |
Show MptcpSubflow Source # | |
Defined in Net.Mptcp.Connection showsPrec :: Int -> MptcpSubflow -> ShowS # show :: MptcpSubflow -> String # showList :: [MptcpSubflow] -> ShowS # |
data MptcpEndpointConfiguration Source #
Instances
Eq MptcpEndpointConfiguration Source # | |
Defined in Net.Mptcp.Connection | |
Show MptcpEndpointConfiguration Source # | |
Defined in Net.Mptcp.Connection showsPrec :: Int -> MptcpEndpointConfiguration -> ShowS # show :: MptcpEndpointConfiguration -> String # showList :: [MptcpEndpointConfiguration] -> ShowS # |
showMptcpConnectionText :: MptcpConnection -> Text Source #
Pretty print an MPTCP connection
mptcpConnAddSubflow :: MptcpConnection -> MptcpSubflow -> MptcpConnection Source #
Adds a subflow to the connection Runs some extra checks TODO compose with mptcpConnAddLocalId
mptcpConnRemoveSubflow :: MptcpConnection -> MptcpSubflow -> MptcpConnection Source #
Remove subflow from an MPTCP connection
tokenBelongToConnection :: Word32 -> MptcpConnection -> Bool Source #