Tcp Module
Types
| Type | Description |
Functions and values
| Function or value | Description |
Full Usage:
MaxBacklog
Returns: int
|
|
Full Usage:
createConnection listenSocket binding cancellationToken bufferSize
Parameters:
Socket
binding : HttpBinding
cancellationToken : CancellationToken
bufferSize : int
Returns: Connection
|
|
Full Usage:
createConnectionFacade tracker connectionPool listenSocket binding runtime cancellationToken bufferSize webpart
Parameters:
ActiveConnectionTracker<ConnectionFacade>
connectionPool : ConcurrentPool<ConnectionFacade>
listenSocket : Socket
binding : HttpBinding
runtime : HttpRuntime
cancellationToken : CancellationToken
bufferSize : int
webpart : WebPart
Returns: ConnectionFacade
|
|
Full Usage:
createPools listenSocket binding maxOps runtime cancellationToken bufferSize webpart healthCheckEnabled healthCheckIntervalMs maxConnectionAgeSeconds
Parameters:
Socket
binding : HttpBinding
maxOps : int
runtime : HttpRuntime
cancellationToken : CancellationToken
bufferSize : int
webpart : WebPart
healthCheckEnabled : bool
healthCheckIntervalMs : int
maxConnectionAgeSeconds : int
Returns: ConcurrentPool<ConnectionFacade>
|
|
Full Usage:
createReader transport pipe cancellationToken
Parameters:
ITransport
pipe : Pipe
cancellationToken : CancellationToken
Returns: HttpReader
|
|
Full Usage:
createTransport listenSocket binding cancellationToken
Parameters:
Socket
binding : HttpBinding
cancellationToken : CancellationToken
Returns: ITransport
|
|
|
|
Full Usage:
runServer maxConcurrentOps bufferSize binding runtime cancellationToken webpart healthCheckEnabled healthCheckIntervalMs maxConnectionAgeSeconds startData acceptingConnections
Parameters:
int
bufferSize : int
binding : SocketBinding
runtime : HttpRuntime
cancellationToken : CancellationToken
webpart : WebPart
healthCheckEnabled : bool
healthCheckIntervalMs : int
maxConnectionAgeSeconds : int
startData : StartedData
acceptingConnections : AsyncResultCell<StartedData>
Returns: Task
|
|
Full Usage:
runServerEx acceptorCount maxConcurrentOps bufferSize binding runtime cancellationToken webpart healthCheckEnabled healthCheckIntervalMs maxConnectionAgeSeconds startData acceptingConnections
Parameters:
int
maxConcurrentOps : int
bufferSize : int
binding : SocketBinding
runtime : HttpRuntime
cancellationToken : CancellationToken
webpart : WebPart
healthCheckEnabled : bool
healthCheckIntervalMs : int
maxConnectionAgeSeconds : int
startData : StartedData
acceptingConnections : AsyncResultCell<StartedData>
Returns: Task
|
|
Full Usage:
startTcpIpServer binding runServer
Parameters:
SocketBinding
runServer : TcpServer
Returns: Async<StartedData option> * Task
|
|
Full Usage:
startTcpIpServerAsync binding runServer
Parameters:
SocketBinding
runServer : TcpServer
Returns: Async<StartedData option> * Task
|
Start a new TCP server with a specific IP, Port and with a serve_client worker returning an async workflow whose result can be awaited (for when the tcp server has started listening to its address/port combination), and an asynchronous workflow that yields when the full server is cancelled. If the 'has started listening' workflow returns None, then the start timeout expired.
|
|
|
|
Enable SO_REUSEPORT on the listen socket so that multiple sockets can be bound to the same address+port and the kernel will load-balance incoming connections across them. Returns true on platforms that support it (Linux 3.9+, macOS, BSD) and on which setsockopt succeeded; false otherwise (notably Windows, where the semantically-similar SO_REUSEADDR is not a safe substitute and we fall back to a single acceptor).
|