Skip to content
#

swift-server

Here are 54 public repositories matching this topic...

Lukasa
Lukasa commented Sep 24, 2020

If you want to work with a complete socket address type including port, we have a helper in SocketAddress. However, the moment you want to talk only about an IP address we force you to hold an in_addr or in_addr6 structure: hardly the friendliest versions of these data types.

We should provide a helpful wrapper IPAddress type that can be converted into those types as needed. This would

weissi
weissi commented Jun 12, 2020

for debugging purposes, we should offer an option to switch on plain text .pcap recording.

It should be very clear that it's for debugging because NIOWritePCAPHandler.SynchronisedFileSink blocks the event loop (we could write an async file sink ofc)...

A pretty terrible patch that can serve as example (but not the final impl ofc) is here:

diff --git a/Package.swift b/Package.sw

Improve this page

Add a description, image, and links to the swift-server topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the swift-server topic, visit your repo's landing page and select "manage topics."

Learn more