Skip to content

Commit

Permalink
Collapse IPEndPointBasis into UDPEndPoint (#11135)
Browse files Browse the repository at this point in the history
* Collapse IPEndPointBasis into UDPEndPoint

#### Problem

For historical reasons, Inet EndPoints have an unnecessarily deep class
hierarchy:

    InetLayerBasis
      EndPointBasis
        TCPEndPoint
        IPEndPointBasis
          UDPEndPoint

#### Change overview

This change moves the contents of IPEndPointBasis into UDPEndPoint.

    InetLayerBasis
      EndPointBasis
        TCPEndPoint
        UDPEndPoint

Since comparing moved code in diff format is difficult, this change
explicitly does NOT make any changes to moved code; a future change
will remove redundancies. Transitionally, methods that would have
duplicate names have are prefixed with `Ip` here.

This is a step toward #7715 _Virtualize System and Inet interfaces_.

#### Testing

CI; no changes to functionality.

* Restyled by clang-format

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Nov 16, 2021
1 parent 7944744 commit 1067413
Show file tree
Hide file tree
Showing 18 changed files with 1,611 additions and 1,756 deletions.
2 changes: 0 additions & 2 deletions src/inet/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ static_library("inet") {
"IPAddress-StringFuncts.cpp",
"IPAddress.cpp",
"IPAddress.h",
"IPEndPointBasis.cpp",
"IPEndPointBasis.h",
"IPPrefix.cpp",
"IPPrefix.h",
"Inet.h",
Expand Down
Loading

0 comments on commit 1067413

Please sign in to comment.