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
endpointTypeHttpEndpointTypeType of this HTTP endpoint
nsstringNamespace of this HTTP endpoint
endpointPathstringPath of this HTTP endpoint
socketPathstringPath to the UNIX socket file
backlogintNumber 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
Properties
EndpointPath
Path of this HTTP endpoint
public string EndpointPath { get; }
Property Value
EndpointType
Type of this HTTP endpoint
public HttpEndpointType EndpointType { get; }
Property Value
Namespace
Namespace of this HTTP endpoint
public string Namespace { get; }
Property Value
SocketPath
Path to the UNIX socket file
public string SocketPath { get; }
Property Value
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