Table of Contents

Namespace VpnHood.Core.Client.VpnServices.Abstractions.Messaging

Classes

TcpMessageClient

Represents the app's side of the loopback TCP channel to the VPN service: one connection to TcpMessageListener, kept, and made again when it drops, to the endpoint and with the key the listener published in the config folder.

TcpMessageListener

Represents the VPN service's side of the loopback TCP channel: it listens on an IPv4 loopback port the system picks, makes a 128-bit key, and publishes both in the config folder, as vpn.api.json, for TcpMessageClient to find.

Interfaces

IMessageClient

Defines the app's side of the channel to the VPN service: it sends a request and gets the answer.

IMessageListener

Defines the VPN service's side of the channel to the app: it hands each request to a handler and sends its answer back.

Delegates

MessageHandler

Represents the method that answers a request from the app.