Erbsland Core
Getting Started
Usage
Topics
Core
Memory
Compression
Compiled Resources
Security Topics
Cryptology
Text Strings
Text Formatting
Text Rendering
Text Placeholders
Text Parsing and Encoding
Data Formats
Configuration
Command Line Options System
Exceptions, Errors and Diagnostics
Filesystem Access and Manipulation
Random and Secrets
Dates and Time
Regular Expressions
Event System
Logging
Streams
Network
Network API Overview
Working with IP Addresses and Hostnames
Resolving Hosts Asynchronously
Using TCP Connections
How to Use TLS Client Connections
How to Use TLS Server Connections
Using HTTP Servers
Using HTTP Clients
Sending and Receiving UDP Packets
Color Terminal
Reference
The Story Behind Erbsland Core
Development Stages and Versioning
Requirements
Changelog
Development
Guidelines
Index
Erbsland Core
Topics
Network
View page source
Network
The network domain provides event-loop-owned host lookup and native TCP and UDP transports.
Network API Overview
Address and Host Values
Resolving Hosts
Transports
HTTP Servers
HTTP Clients
Working with IP Addresses and Hostnames
Parse and Inspect Addresses and Hosts
Internationalized Host Names
Build Endpoints without Ambiguity
Match Networks and Address Ranges
From Host Names to Addresses
Resolving Hosts Asynchronously
Starting Host Resolution and Receiving Addresses
Host Lookup Timeouts and Retry Limits
Host Lookup Errors and Diagnostics
Host Lookup Owner Loops and Callback Execution
Cancelling Host Resolution
HostLookup Ownership and Lifetime
Using TCP Connections
TCP Carries a Stream, Not Requests
Configuring the Example TCP Lookup Service
Listen and Accept Connections
Server-Side TCP Message Framing and Responses
Connect from the Client
Send and Receive One Framed Message
How to Use TLS Client Connections
Connection Ownership and the Event Loop
Choosing Which Server to Trust
Following Connection and Authentication
Receiving a Byte Stream
Sending Without Blocking
Deadlines, Closure, and Failure
Presenting a Client Certificate
How to Use TLS Server Connections
From Listener to TLS Session
Providing the Server Identity
Completing the Handshake Before Application Work
Bounding Connections and Handshakes
Flow Control and Bounded Input
Selecting Profiles with SNI
Authenticating Clients
Finishing Sessions and Stopping the Service
Using HTTP Servers
Starting a Plaintext Server
How Routes Match
Serving Static Content
Reading a Request Body
Streaming a Response
Enabling HTTPS
Complete HTTPS Server Demo
Using Cookie-Backed Sessions
Using HTTP Clients
Sending a Request
Choosing Automatic Response Handling
Following Redirects
Using the Cookie Jar
Streaming a Download
Sequential Connection Reuse
Streaming an Upload
HTTPS and Deadlines
Closing the Session
Sending and Receiving UDP Packets
One Socket, Many Packets
Receive and Reply at a Service
Send Only After Binding
Handle Replies as Untrusted Packets
React to a Full Output Queue
Pausing and Resuming UDP Packet Delivery
Graceful UDP Socket Close and Immediate Abort