Commit graph

7 commits

Author SHA1 Message Date
Mark Carpenter
ab701520c4 Add IncomingPeerId and IncomingSessionId to Peer 2025-07-27 21:46:54 -04:00
Nick
55084b9fa8 expose rtt 2025-07-27 05:58:32 -05:00
Emir
fa1a54c154 Added GetConnectedId to Peer 2024-07-19 10:43:07 +03:00
Andy Cook
ae0c4e5f87 Expose enet peer data field
Decided to allow storing of arbitrary data saved as a byte slice,
leaving the conversion of whatever data that wants to be stored (e.g. an
identified or JSON) up to the consumer.

Importantly this data is being stored in enet C field so we ensure that
the data is being copied out in to C allocation, rather than allowing C
code to have Go pointers. For this reason, it is up to the caller to
unset data when the peer is done with to avoid memory leaks. I couldn't
find a way with enet to have this automatically cleaned up.
2023-01-24 19:03:22 +01:00
Melissa Geels
658319e2ed Added peer disconnect functions 2020-08-01 20:20:01 +02:00
Melissa Geels
739a5deb93 Packet progress 2020-08-01 20:05:23 +02:00
Melissa Geels
36633a3bef First progress 2020-08-01 19:07:09 +02:00