RegisterSession will register a new session if it does not already exist for the request ID. During new session creation, the session will also bind the UDP socket for the origin. If the session exists for a different connection, it will return [ErrSessionBoundToOtherConn].
(request *UDPSessionRegistrationDatagram, conn DatagramConn)
| 28 | // During new session creation, the session will also bind the UDP socket for the origin. |
| 29 | // If the session exists for a different connection, it will return [ErrSessionBoundToOtherConn]. |
| 30 | RegisterSession(request *UDPSessionRegistrationDatagram, conn DatagramConn) (Session, error) |
| 31 | // GetSession returns an active session if available for the provided connection. |
| 32 | // If the session does not exist, it will return [ErrSessionNotFound]. If the session exists for a different |
| 33 | // connection, it will return [ErrSessionBoundToOtherConn]. |
no outgoing calls