Pango Platform
HomeConsole
  • What is Pango Developer Platform
  • Getting started
    • Sign up on the Management Console
    • Create a new project
    • Switch projects
    • Change console settings
    • Edit your profile
    • Try out the demo app
    • Keep exploring
    • Deprecation and Sunset
  • Console details
    • Dashboard
      • General
      • Location loading
    • Users
      • User page
    • Active sessions
    • Network
      • Countries
      • Locations
      • Pools
        • Optimal location
        • Location rules
    • Settings
      • General
        • Project config description (JSON format)
          • Server selector (JSON format)
          • Request selector (JSON format)
      • Authentication methods
        • Auth Plugin requirements
      • VPN
        • General
        • VPN Bypass list
        • Client Networks
      • Member
    • Export Data
    • Log
  • SDK
    • Unified VPN SDK for Android
      • Setup
        • Application Setup
        • Proguard Rules, Notification, and Analytics Configurations
        • Backend URL Configuration
      • Usage
        • Initialization
        • VPN Interface
        • Backend interface
      • Features
        • Hydra Protocol
          • Location profile (Hydra only)
        • Custom sdk dependencies
        • Deferred VPN Service Initialization
        • Authentication
        • Client Network List (CNL)
        • OpenVPN transport
        • Wireguard Transport
        • Reconnection strategy
        • Single Protocol SDK
        • Killswitch
        • Domain route via VPN
        • Process route via VPN
        • Process Bypass
        • Domain Bypass
        • Traffic rules
        • VPN Node DNS Configuration
        • Multihop
          • Optimal Location
      • Exceptions
      • Version migration
      • Changelog
    • Unified VPN SDK for Apple
      • Setup
        • Application Setup
        • Network Extension Setup
          • Network Extension Setup for tvOS
        • Backend URL Configuration
      • Usage
        • Single Protocol SDK
        • Unified SDK
        • Logging
        • Decoding Encoded VPN SDK Logs
      • Features
        • Deferred VPN Service Initialization
        • Authentication
        • Wireguard Transport
        • Reconnection strategy
        • Killswitch
        • Domain Bypass
        • Multihop
          • Optimal Location
        • Client Network List (CNL)
        • Domain route via VPN
      • Changelog
      • API Reference
    • IPSEC VPN SDK for Apple
    • Unified VPN SDK for Windows
      • Setup
        • Backend URL Configuration
        • Service command line arguments
        • ARM Platform Support
      • Usage
        • CoreAPI
        • Events
        • Generating a Unique Device Identifier
        • Error processing
        • Pipe Messaging
      • Features
        • Traffic protection
          • Killswitch
          • Prevent IP Leaks
          • Block Local Networks
        • Other
          • Firewall
            • DNS Monitor
            • Process Bypass
            • Domain Bypass
            • Process route via VPN
            • Domain route via VPN
          • Throttling
          • Optimal Location
          • Common issues
        • Hydra Protocol
          • CustomDNS, UserDNS, MultiHop, VpnProfiles
        • OpenVPN Protocol
        • Wireguard Protocol
        • IPSec Protocol
      • Collecting Debug Logs
      • Changelog
    • Unified VPN SDK for Routers
      • SDK. Shared library.
      • Configuration Interface (CI)
        • Unix Domain Sockets CI
        • REST API CI
    • Unified VPN SDK Feature Comparison By Platform
    • Unified VPN SDK
      • Features
        • Personal Bridge
    • Tunnel Vision and Tunnel Crack Prevention
  • REST API
    • Partner API
  • Sample applications
    • Unified VPN SDK demo for Windows
    • Hydra VPN SDK demo for iOS
    • IPSEC VPN SDK demo for iOS
    • Unified VPN SDK demo for Android
    • Hydra VPN SDK demo for OpenWRT
    • OpenVPN configuration file
  • Resources
    • Use cases
      • Public VPN
      • Business VPN
        • Creating a Business VPN Project
        • Wi-Fi Security for Business
      • Application anti-blocking
    • How-to
      • Create a Firebase project for User Authentication
      • AWS CloudFront Distribution of the Platform URL
      • How can I get Shared Secret key from iTunes Connect for In-App Purchase
  • FAQ
    • General
      • VPN Platform Flow
      • What data is collected by the Platform?
      • What analytic data is collected by your SDK?
      • How the Platform restricts access to our data?
      • Why DNS Leak tests often indicate positive result?
      • Do we need to perform endpoint health checks?
      • How is the VPN exit node found?
      • How are streams re-marked if VPN is enabled/disabled on an active flow?
      • Is there a maximum number of supported devices?
      • Are both IPv4 and IPv6 supported?
      • What is the MTU of the tunnel?
      • Are any redundancy measures in terms of reliability provided?
      • Is there any load balancing?
      • Do you block broadcast and multicast to/from the VPN?
    • List of Open Source libs
Powered by GitBook
On this page
  • Message format
  • Command Pipe
  • Event Pipe

Was this helpful?

  1. SDK
  2. Unified VPN SDK for Windows
  3. Usage

Pipe Messaging

PreviousError processingNextFeatures

Last updated 3 months ago

Was this helpful?

Pipe messaging is a communication protocol that defines specific formats and workflows for command and event pipes. This system helps track and understand how messages flow between applications and their associated services. Our Core project is currently implementing this pipe messaging approach for a client application to manage their service communications.

Message format

Both command and event pipes use the same message format.

Field
Length
Description

Length

4 bytes

Message length in big-endian format

Message

up to 2 147 483 647 bytes

Payload in XML or JSON format

All message schemas can be found in the file RPSchema.xsd.

Command Pipe

The Command Pipe processes a single request per client connection using one thread and works with only one client at a time. When a client connects, the pipe server will wait for 3 seconds to receive a request. If no request is received within this timeout period, the pipe server will forcibly disconnect the client.

Note: Request processing times may vary significantly depending on the complexity of the operation.

Event Pipe

The Event Pipe is designed to maintain a persistent connection with a single client, utilizing regular handshakes for pipe health monitoring.

The connection process begins with an initial handshake sequence. The client initiates this sequence immediately upon connection, verifying bidirectional communication capability between client and service. If the service fails to receive this handshake message within 1000 milliseconds, it forcibly disconnects the client. Following successful client handshake reception, the service sends its own handshake message to verify the client can receive messages.

The Core project uses a default timeout of 3000 milliseconds. If a handshake is not successful within this period, the client will be disconnected, disposed of, and a new client instance must be created. The creation of this new client instance is also managed by the Core project.

After the initial handshake completes successfully, the service enters an event-waiting state. If no event occurs within 1000 milliseconds, the service initiates a secondary handshake with the client to verify connection stability. This secondary handshake requires client acknowledgment. Any failure in this secondary handshake process results in client disconnection, after which the service begins waiting for a new client connection.

When an event occurs within the 1000-millisecond window, the service transmits the event message to the client and awaits a delivery confirmation. If confirmation fails and the event was not of type TrafficChanged, the service disconnects the client and begins waiting for a new connection. In this case, the event message remains in the delivery stack for retransmission to the next client connection.

TrafficChanged events are not stored in the delivery stack since they occur every second and do not contain critical information that requires tracking of missed events.

Command pipe flow
Event pipe flow