hnisula / ducklib

A library made out of ducks
1 stars 0 forks source link

Connection functionality #51

Open hnisula opened 1 year ago

hnisula commented 1 year ago

Functionality to send a connection request -> it being accepted/denied -> (if accepted) connection established and maintained through heartbeat messages -> disconnect.

Disconnection detection through missing heartbeats (or other packets?) is also needed.

This also makes up the part of the reliability functionality (#49) as it relies on state per peer-to-peer connection.

Heartbeat messages should not be required as there should already be a steady stream of messages between the clients anyway. If the need arises it can be implemented later.