realm_hook

Crates.iorealm_hook
lib.rsrealm_hook
version0.1.4
sourcesrc
created_at2022-05-03 11:58:46.30029
updated_at2022-05-04 08:40:51.198288
descriptionRealm's flexible hooks.
homepage
repositoryhttps://github.com/zhboner/realm/realm_hook
max_upload_size
id579697
size4,620
zephyr (zephyrchien)

documentation

https://docs.rs/realm_hook

README

Realm Hook

crates.io Released API docs

Realm's flexible hooks.

Pre-connect Hook

// Get the required length of first packet.
uint32_t realm_first_pkt_len();
// Get the index of the selected remote peer.
//
// Remote peers are defined in `remote`(default) and `extra_remotes`(extended),
// where there should be at least 1 remote peer whose idx is 0.
//
// idx < 0 means **ban**.
// idx = 0 means **default**.
int32_t realm_decide_remote_idx(const char*);
Commit count: 423

cargo fmt