Class EOS_P2P_SocketId

java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.p2p.EOS_P2P_SocketId
Direct Known Subclasses:
EOS_P2P_SocketId.ByReference, EOS_P2P_SocketId.ByValue

@FieldOrder({"ApiVersion","SocketName"}) public class EOS_P2P_SocketId extends com.sun.jna.Structure
P2P Socket ID

The Socket ID contains an application-defined name for the connection between a local person and another peer.

When a remote user receives a connection request from you, they will receive this information. It can be important to only accept connections with a known socket-name and/or from a known user, to prevent leaking of private information, such as a user's IP address. Using the socket name as a secret key can help prevent such leaks. Shared private data, like a private match's Session ID are good candidates for a socket name.

Since:
8/21/2023