Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Interface IP2PNetworkingService

    Namespace: PopcorningGuineaPig.Engine.Services
    Assembly: PopcorningGuineaPig.Engine.dll
    Syntax
    public interface IP2PNetworkingService

    Properties

    | Edit this page View Source

    AutoAccept

    When true (the default), incoming sessions are accepted after OnSessionRequested fires. Banqi relies on that. Set false and call AcceptSession(CSteamID) yourself to filter.

    Declaration
    bool AutoAccept { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsAvailable

    Declaration
    bool IsAvailable { get; }
    Property Value
    Type Description
    bool

    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
    Type Description
    PeerLink
    | Edit this page View Source

    PollPackets()

    Declaration
    void PollPackets()
    | 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
    Type Description
    Action<CSteamID, byte[]>
    | 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>
    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.