Blue Brain BioExplorer
core::BinaryRequests Class Reference

#include <BinaryRequests.h>

Public Member Functions

auto createTask (const BinaryParam &param, uintptr_t clientID, Engine &engine)
 
void setNextChunkID (const std::string &id)
 
rockets::ws::Response processMessage (const rockets::ws::Request &wsRequest)
 
void removeRequest (const uintptr_t clientID)
 
void removeTask (TaskPtr task)
 

Detailed Description

Manage requests for the request-model-upload RPC by receiving and delegating the blobs to the correct request.

Definition at line 38 of file BinaryRequests.h.

Member Function Documentation

◆ createTask()

auto core::BinaryRequests::createTask ( const BinaryParam param,
uintptr_t  clientID,
Engine engine 
)
inline

Create and remember the AddModelFromBlobTask for upcoming receives of binary data to delegate them to the task.

Definition at line 45 of file BinaryRequests.h.

◆ processMessage()

rockets::ws::Response core::BinaryRequests::processMessage ( const rockets::ws::Request &  wsRequest)
inline

The receive and delegate of blobs to the AddModelFromBlobTask.

Definition at line 58 of file BinaryRequests.h.

◆ removeRequest()

void core::BinaryRequests::removeRequest ( const uintptr_t  clientID)
inline

Remove pending request in case the client connection closed.

Definition at line 73 of file BinaryRequests.h.

◆ removeTask()

void core::BinaryRequests::removeTask ( TaskPtr  task)
inline

Remove finished task.

Definition at line 89 of file BinaryRequests.h.

◆ setNextChunkID()

void core::BinaryRequests::setNextChunkID ( const std::string &  id)
inline

Definition at line 56 of file BinaryRequests.h.


The documentation for this class was generated from the following file: