Class SteamP2PNetworkingService
Inheritance
SteamP2PNetworkingService
Assembly: PopcorningGuineaPig.Engine.dll
Syntax
public class SteamP2PNetworkingService : IP2PNetworkingService
Constructors
|
Edit this page
View Source
SteamP2PNetworkingService(SteamManager)
Declaration
public SteamP2PNetworkingService(SteamManager steamManager)
Parameters
Properties
|
Edit this page
View Source
AutoAccept
Declaration
public bool AutoAccept { get; set; }
Property Value
|
Edit this page
View Source
IsAvailable
Declaration
public bool IsAvailable { get; }
Property Value
Methods
|
Edit this page
View Source
AcceptSession(CSteamID)
Declaration
public void AcceptSession(CSteamID peerId)
Parameters
| Type |
Name |
Description |
| CSteamID |
peerId |
|
|
Edit this page
View Source
CloseSession(CSteamID)
Declaration
public void CloseSession(CSteamID peerId)
Parameters
| Type |
Name |
Description |
| CSteamID |
peerId |
|
|
Edit this page
View Source
GetPeerSession(CSteamID)
Whether this peer's Messages session is Connected, the last
SessionFailed end reason (0 if that callback never fired), and
its debug string. A session that goes quiet without the callback
is not live.
Declaration
public PeerLink GetPeerSession(CSteamID peerId)
Parameters
| Type |
Name |
Description |
| CSteamID |
peerId |
|
Returns
|
Edit this page
View Source
PollPackets()
Declaration
public void PollPackets()
|
Edit this page
View Source
SendPacket(CSteamID, byte[], bool, int)
Declaration
public void SendPacket(CSteamID peerId, byte[] data, bool reliable = true, int channel = 0)
Parameters
| Type |
Name |
Description |
| CSteamID |
peerId |
|
| byte[] |
data |
|
| bool |
reliable |
|
| int |
channel |
|
Events
|
Edit this page
View Source
OnPacketReceived
Declaration
public event Action<CSteamID, byte[]>? OnPacketReceived
Event Type
|
Edit this page
View Source
OnPeerDisconnected
Declaration
public event Action<CSteamID>? OnPeerDisconnected
Event Type
| Type |
Description |
| Action<CSteamID> |
|
|
Edit this page
View Source
OnSessionRequested
Declaration
public event Action<CSteamID>? OnSessionRequested
Event Type
| Type |
Description |
| Action<CSteamID> |
|
Implements