Erbsland Core
Getting Started
Usage
Topics
Core
Memory
Compiled Resources
Security Topics
Cryptology
Text
Command Line Options System
Exceptions, Errors and Diagnostics
Filesystem Access and Manipulation
Random and Secrets
Regular Expressions
Event System
Logging
Streams
Network
Network API Overview
Working with IP Addresses and Hostnames
Resolving Hosts Asynchronously
Using TCP Connections
Using TLS Client Connections
Using 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
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
Start with a Host and Wait for the Result
Give Slow Lookups a Deadline
Turn Failures into Useful Diagnostics
Keep Callbacks with Their Owner Event Loop
Cancel a Result That Is No Longer Useful
Let Ownership Define the Lookup Lifetime
Using TCP Connections
TCP Carries a Stream, Not Requests
Prepare the Map Data
Listen and Accept Connections
Frame, Look Up, and Reply
Connect from the Client
Send and Receive One Framed Message
Using TLS Client Connections
Registering a Policy Once
Connecting and Checkpoints
Back-Pressure and Receiving
Deadlines and Closure
Using TLS Server Connections
Registering Default and Exact Identities
Sharing Capacity Across Listeners
Accepting TLS and Inspecting ClientHello
Back-Pressure and Graceful Shutdown
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
Pause Delivery Briefly
Close the Socket Deliberately