actually implement edge node holder server
This commit is contained in:
parent
11b0393e6a
commit
a9fffa8d2d
5 changed files with 99 additions and 5 deletions
|
|
@ -65,7 +65,7 @@ impl<T: AsyncWrite + Unpin> UnitPacketWrite for T{}
|
|||
#[rmc_proto(1)]
|
||||
pub trait EdgeNodeManagement {
|
||||
#[method_id(1)]
|
||||
async fn get_url(&self, seed: u64) -> Result<String, ErrorCode>;
|
||||
async fn get_url(&self, seed: u64) -> Result<SocketAddrV4, ErrorCode>;
|
||||
}
|
||||
|
||||
define_rmc_proto!(
|
||||
|
|
@ -78,5 +78,5 @@ define_rmc_proto!(
|
|||
#[repr(u32)]
|
||||
pub enum EdgeNodeHolderConnectOption{
|
||||
DontRegister = 0,
|
||||
Register(String) = 1
|
||||
Register(SocketAddrV4) = 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue