commit - 2a3afd658a7310893750eda176b58753ec3b47b8
commit + 68b533d48e185dcced82ee7f40bad4a639734d82
blob - 9e6ee027004e26a3afe77003d89825cc43afa34f
blob + c06b9ba17fb2b7be31ad085fcb15bdcc00086148
--- README.gmi
+++ README.gmi
```
=> https://got.any-key.press/?action=summary&path=vostok.git vostok repository web frontend
-Latest version (git tag): v0.1.3
+Latest version (git tag): v0.1.4
=> capsule/vostok.png What is "vostok"?
```
blob - 2fd64c41da913b79b2baa6ed432aa0e4cd956d41
blob + 1dce76b2ea92a3ad7fdab809768d0971a2b00bfe
--- vostok/transport.cc
+++ vostok/transport.cc
#include "error.h"
#include "transport.h"
-#include <array>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <arpa/inet.h>
namespace vostok
{
public:
explicit PrintIfError(czstring error) : m_error{error} {}
-
void operator() () const
{
if (m_error)
blob - 428b885281222a59dc18e8d06ca6457e49e47548
blob + 3ffe1270ee87afe1bc69f3991207856e1f05eaf4
--- vostok/vostok.cc
+++ vostok/vostok.cc
#include <vector>
#include <thread>
-#include <time.h>
-#include <ctime>
-#include <iomanip>
-
namespace vostok
{
namespace
void client_thread(const transport::AcceptedClient *accepted_client, int directory_fd, const Mime &mime)
{
- struct LogThreadId
- {
- LogThreadId() {error::g_log << "+" << std::hex << m_thread_id << " ";}
- ~LogThreadId() { error::g_log << "-" << std::hex << m_thread_id << std::endl;}
-
- const std::thread::id m_thread_id{std::this_thread::get_id()};
- } log_thread_id;
-
assert(accepted_client);
std::unique_ptr<const transport::AcceptedClient> accepted_client_deleter{accepted_client};