Closed dsriseah closed 4 months ago
This is a complicated class that encapsulated the URNET message systems in a network technology-agnostic way. Conceptually, the Endpoint class is capable of sending and receiving URNET.NetPacket objects (messages) through URNET.NetSockets (connection objects with send(), close(), and onData() messages).
A challenge is that Endpoint can work both as a client or server endpoint. As a client endpoint, it connects to a gateway. As a server endpoint, it listens for connections and manages clients. The main processing logic is slightly different depending on how the Endpoint is invoked:
CLEANUP
if (pkt.msg_type)
instead of pkt.IsReq()
, which would be better to use, and would allow compound conditions like isForwardedPacket()
and isReturningPacket()
and isFowardedPacketResponse()
Resolved as part of ursys-auth
3fd499416
This is a tracking issue to note what opportunities I see for clarifying convoluted modules. In each comment, I'll note any commits that address them.