CS计算机代考程序代写 #pragma once

#pragma once

#include

#include “../common/bytevec.h”

#include “storage.h”

/// When a new client connection is accepted, this code will run to figure out
/// what the client is requesting, and to dispatch to the right function for
/// satisfying the request.
///
/// @param sd The socket on which communication with the client takes place
/// @param pri The private key used by the server
/// @param pub The public key file contents, to possibly send to the client
/// @param storage The Storage object with which clients interact
///
/// @return true if the server should halt immediately, false otherwise
bool parse_request(int sd, RSA *pri, const bytevec &pub, Storage &storage);

Leave a Reply

Your email address will not be published. Required fields are marked *