public class SteamNetworking extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SteamNetworking.P2PSend |
static class |
SteamNetworking.P2PSessionError |
static class |
SteamNetworking.P2PSessionState |
| Modifier and Type | Field and Description |
|---|---|
protected long |
callback |
protected long |
pointer |
| Constructor and Description |
|---|
SteamNetworking(SteamNetworkingCallback callback) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptP2PSessionWithUser(SteamID steamIDRemote) |
boolean |
allowP2PPacketRelay(boolean allow) |
boolean |
closeP2PChannelWithUser(SteamID steamIDRemote,
int channel) |
boolean |
closeP2PSessionWithUser(SteamID steamIDRemote) |
protected static void |
deleteCallback(long callback) |
void |
dispose() |
boolean |
getP2PSessionState(SteamID steamIDRemote,
SteamNetworking.P2PSessionState connectionState) |
int |
isP2PPacketAvailable(int channel) |
int |
readP2PPacket(SteamID steamIDRemote,
ByteBuffer dest,
int channel)
Read incoming packet data into a direct
ByteBuffer. |
boolean |
sendP2PPacket(SteamID steamIDRemote,
ByteBuffer data,
SteamNetworking.P2PSend sendType,
int channel) |
public SteamNetworking(SteamNetworkingCallback callback)
public boolean sendP2PPacket(SteamID steamIDRemote, ByteBuffer data, SteamNetworking.P2PSend sendType, int channel) throws SteamException
SteamExceptionpublic int isP2PPacketAvailable(int channel)
public int readP2PPacket(SteamID steamIDRemote, ByteBuffer dest, int channel) throws SteamException
ByteBuffer.
On success, returns the number of bytes received, and the steamIDRemote parameter contains the
sender's ID.SteamExceptionpublic boolean acceptP2PSessionWithUser(SteamID steamIDRemote)
public boolean closeP2PSessionWithUser(SteamID steamIDRemote)
public boolean closeP2PChannelWithUser(SteamID steamIDRemote, int channel)
public boolean getP2PSessionState(SteamID steamIDRemote, SteamNetworking.P2PSessionState connectionState)
public boolean allowP2PPacketRelay(boolean allow)
public void dispose()
protected static void deleteCallback(long callback)
Copyright © 2018. All rights reserved.