Skip to main content

EOS_P2P_OnPeerConnectionEstablishedInfo

Type Alias EOS_P2P_OnPeerConnectionEstablishedInfo 

Source
pub type EOS_P2P_OnPeerConnectionEstablishedInfo = _tagEOS_P2P_OnPeerConnectionEstablishedInfo;
Expand description

Structure containing information about a connection being established

Aliased Type§

#[repr(C)]
pub struct EOS_P2P_OnPeerConnectionEstablishedInfo { pub ClientData: *mut c_void, pub LocalUserId: *mut EOS_ProductUserIdDetails, pub RemoteUserId: *mut EOS_ProductUserIdDetails, pub SocketId: *const _tagEOS_P2P_SocketId, pub ConnectionType: i32, pub NetworkType: i32, }

Fields§

§ClientData: *mut c_void

Client-specified data passed into EOS_P2P_AddNotifyPeerConnectionEstablished

§LocalUserId: *mut EOS_ProductUserIdDetails

The Product User ID of the local user who is being notified of a connection being established

§RemoteUserId: *mut EOS_ProductUserIdDetails

The Product User ID of the remote user who this connection was with

§SocketId: *const _tagEOS_P2P_SocketId

The socket ID of the connection being established

§ConnectionType: i32

Information if this is a new connection or reconnection

§NetworkType: i32

What type of network connection is being used for this connection