Table of Contents

Class HttpEndpointUnixSocket

Namespace
DuetAPIClient
Assembly
DuetAPIClient.dll

Class for dealing with custom HTTP endpoints

public sealed class HttpEndpointUnixSocket : IDisposable
Inheritance
HttpEndpointUnixSocket
Implements
Inherited Members

Constructors

HttpEndpointUnixSocket(HttpEndpointType, string, string, string, int)

Open a new UNIX socket on the given file path

public HttpEndpointUnixSocket(HttpEndpointType endpointType, string ns, string endpointPath, string socketPath, int backlog = 4)

Parameters

endpointType HttpEndpointType

Type of this HTTP endpoint

ns string

Namespace of this HTTP endpoint

endpointPath string

Path of this HTTP endpoint

socketPath string

Path to the UNIX socket file

backlog int

Number of simultaneously pending connections

Exceptions

IOException

Socket could not be opened

Fields

DefaultBacklog

Default number of pending connections

public const int DefaultBacklog = 4

Field Value

int

Properties

EndpointPath

Path of this HTTP endpoint

public string EndpointPath { get; }

Property Value

string

EndpointType

Type of this HTTP endpoint

public HttpEndpointType EndpointType { get; }

Property Value

HttpEndpointType

Namespace

Namespace of this HTTP endpoint

public string Namespace { get; }

Property Value

string

SocketPath

Path to the UNIX socket file

public string SocketPath { get; }

Property Value

string

Methods

Dispose()

Disposes all used resources

public void Dispose()

Events

OnEndpointRequestReceived

Event that is triggered whenever a new HTTP request is received

public event HttpEndpointUnixSocket.EndpointRequestReceived? OnEndpointRequestReceived

Event Type

HttpEndpointUnixSocket.EndpointRequestReceived