apple/swift-nio

Provide IPAddress type

Open

#1.650 geöffnet am 24. Sept. 2020

Auf GitHub ansehen
 (8 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)Swift (749 Forks)batch import
good first issuekind/enhancement

Repository-Metriken

Stars
 (8.453 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T 5h) (18 gemergte PRs in 30 T)

Beschreibung

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 be a much friendlier way to work with IP addresses. This is a good issue for those who are familiar with either IP addresses or Swift.

Contributor Guide