Skip to content

Commit

Permalink
Collapse IPEndPointBasis into UDPEndPoint
Browse files Browse the repository at this point in the history
#### 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.
  • Loading branch information
kpschoedel authored and andy31415 committed Oct 28, 2021
1 parent 149e582 commit 0be7d39
Show file tree
Hide file tree
Showing 18 changed files with 1,611 additions and 1,751 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 0be7d39

Please sign in to comment.