Added vscode
This commit is contained in:
parent
177bc602af
commit
f652ba1f34
29
.vscode/c_cpp_properties.json
vendored
Normal file
29
.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Linux",
|
||||||
|
"includePath": [
|
||||||
|
"${workspaceFolder}/**"
|
||||||
|
],
|
||||||
|
"defines": [],
|
||||||
|
"compilerPath": "/usr/bin/gcc",
|
||||||
|
"cStandard": "gnu17",
|
||||||
|
"cppStandard": "gnu++14",
|
||||||
|
"intelliSenseMode": "gcc-x64",
|
||||||
|
"compileCommands": "./compile"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "config",
|
||||||
|
"includePath": [
|
||||||
|
"${workspaceFolder}/**"
|
||||||
|
],
|
||||||
|
"defines": [],
|
||||||
|
"compilerPath": "/usr/bin/gcc",
|
||||||
|
"cStandard": "gnu17",
|
||||||
|
"cppStandard": "gnu++17",
|
||||||
|
"intelliSenseMode": "gcc-x64",
|
||||||
|
"compileCommands": "./compile"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 4
|
||||||
|
}
|
@ -80,6 +80,12 @@ namespace core {
|
|||||||
shutdown("termination requested");
|
shutdown("termination requested");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TCPSession::onBlockReceived(std::string block) {
|
||||||
|
coreutils::Log(coreutils::LOG_DEBUG_3) << "[" << block.length() << "]";
|
||||||
|
if(term)
|
||||||
|
shutdown("termination requested");
|
||||||
|
}
|
||||||
|
|
||||||
void TCPSession::sendToAll() {
|
void TCPSession::sendToAll() {
|
||||||
for(auto session : server.sessions)
|
for(auto session : server.sessions)
|
||||||
if(session != this)
|
if(session != this)
|
||||||
|
@ -83,13 +83,6 @@ namespace core {
|
|||||||
|
|
||||||
TCPServer &server;
|
TCPServer &server;
|
||||||
|
|
||||||
///
|
|
||||||
/// Set this value to control the next read event coming
|
|
||||||
/// from this socket.
|
|
||||||
///
|
|
||||||
|
|
||||||
// enum Mode {LINE, BLOCK};
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user