apple/swift-nio

Provide IPAddress type

開放

#1,650 建立於 2020年9月24日

 (8 則留言) (5 個反應) (0 位負責人)Swift (749 個分叉)batch import
good first issuekind/enhancement

倉庫指標

星標
 (8,453 顆星)
PR 合併指標
 (平均合併 9天 10小時) (30 天內合併 15 個 PR)

描述

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.

貢獻者指南