As a lightweight data layer transport protocol, ENET should not be limited to the underlying udp. I think that limits its use.
In network environments such as p2p and even tcp networks, enet is useful, perhaps a transport layer protocol that does not belong to QUIC in most respects.
Therefore, I think the network layer of enet should not be bound to udp, but should be abstracted into data exchange operations such as send, recv or config in the form of dependency injection.
As a lightweight data layer transport protocol,
ENETshould not be limited to the underlying udp. I think that limits its use.In network environments such as p2p and even tcp networks, enet is useful, perhaps a transport layer protocol that does not belong to QUIC in most respects.
Therefore, I think the network layer of enet should not be bound to udp, but should be abstracted into data exchange operations such as
send,recvorconfigin the form of dependency injection.