Constructors

Synopses

Declared in <httpserver.h>

Deleted copy constructor; clients are only used through shared pointers.

HTTPRemoteClient(HTTPRemoteClient const& other) = delete;

Construct a client for a freshly accepted connection.

explicit
HTTPRemoteClient(
    HTTPServer::Id id,
    CService const& addr,
    std::unique_ptr<Sock> socket);

Parameters

Name

Description

other

The client that would be copied.

id

Unique identifier assigned by the server.

addr

Remote address and port of the peer.

socket

Connected socket owned by this client.

Created with MrDocs