Interface IP2PNetworkingService
Assembly: PopcorningGuineaPig.Engine.dll
Syntax
public interface IP2PNetworkingService
Properties
|
Edit this page
View Source
AutoAccept
Declaration
bool AutoAccept { get; set; }
Property Value
|
Edit this page
View Source
IsAvailable
Declaration
bool IsAvailable { get; }
Property Value
Methods
|
Edit this page
View Source
AcceptSession(CSteamID)
Declaration
void AcceptSession(CSteamID peerId)
Parameters
| Type |
Name |
Description |
| CSteamID |
peerId |
|
|
Edit this page
View Source
CloseSession(CSteamID)
Declaration
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
PeerLink GetPeerSession(CSteamID peerId)
Parameters
| Type |
Name |
Description |
| CSteamID |
peerId |
|
Returns
|
Edit this page
View Source
PollPackets()
Declaration
|
Edit this page
View Source
SendPacket(CSteamID, byte[], bool, int)
Declaration
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
event Action<CSteamID, byte[]>? OnPacketReceived
Event Type
|
Edit this page
View Source
OnPeerDisconnected
Declaration
event Action<CSteamID>? OnPeerDisconnected
Event Type
| Type |
Description |
| Action<CSteamID> |
|
|
Edit this page
View Source
OnSessionRequested
Declaration
event Action<CSteamID>? OnSessionRequested
Event Type
| Type |
Description |
| Action<CSteamID> |
|