convert all CRLF line endings to LF only
This commit is contained in:
+33
-33
@@ -1,33 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <event2/event.h>
|
||||
|
||||
#include "ProxyServer.hh"
|
||||
#include "ServerState.hh"
|
||||
|
||||
class ServerShell : public std::enable_shared_from_this<ServerShell> {
|
||||
public:
|
||||
class exit_shell : public std::runtime_error {
|
||||
public:
|
||||
exit_shell();
|
||||
~exit_shell() = default;
|
||||
};
|
||||
|
||||
explicit ServerShell(std::shared_ptr<ServerState> state);
|
||||
ServerShell(const ServerShell&) = delete;
|
||||
ServerShell(ServerShell&&) = delete;
|
||||
ServerShell& operator=(const ServerShell&) = delete;
|
||||
ServerShell& operator=(ServerShell&&) = delete;
|
||||
~ServerShell();
|
||||
|
||||
std::shared_ptr<ProxyServer::LinkedSession> get_proxy_session(const std::string& name);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<ServerState> state;
|
||||
std::thread th;
|
||||
|
||||
void thread_fn();
|
||||
};
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include <event2/event.h>
|
||||
|
||||
#include "ProxyServer.hh"
|
||||
#include "ServerState.hh"
|
||||
|
||||
class ServerShell : public std::enable_shared_from_this<ServerShell> {
|
||||
public:
|
||||
class exit_shell : public std::runtime_error {
|
||||
public:
|
||||
exit_shell();
|
||||
~exit_shell() = default;
|
||||
};
|
||||
|
||||
explicit ServerShell(std::shared_ptr<ServerState> state);
|
||||
ServerShell(const ServerShell&) = delete;
|
||||
ServerShell(ServerShell&&) = delete;
|
||||
ServerShell& operator=(const ServerShell&) = delete;
|
||||
ServerShell& operator=(ServerShell&&) = delete;
|
||||
~ServerShell();
|
||||
|
||||
std::shared_ptr<ProxyServer::LinkedSession> get_proxy_session(const std::string& name);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<ServerState> state;
|
||||
std::thread th;
|
||||
|
||||
void thread_fn();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user