Skip to content

Commit

Permalink
Revert files
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickNovelab committed Aug 17, 2023
1 parent b7d500e commit 8286751
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 15 deletions.
17 changes: 8 additions & 9 deletions src/input_output/FGInputSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ FGInputSocket::FGInputSocket(FGFDMExec* fdmex) :

FGInputSocket::~FGInputSocket()
{
//delete socket;
delete socket;
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

bool FGInputSocket::Load(Element* el)
{/*
{
if (!FGInputType::Load(el))
return false;

Expand All @@ -87,14 +87,13 @@ bool FGInputSocket::Load(Element* el)
if (to_upper(action) == "BLOCKING_INPUT")
BlockingInput = true;

return true;*/
return false;
return true;
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

bool FGInputSocket::InitModel(void)
{/*
{
if (FGInputType::InitModel()) {
delete socket;
socket = new FGfdmSocket(SockPort, SockProtocol);
Expand All @@ -104,15 +103,15 @@ bool FGInputSocket::InitModel(void)

return true;
}
*/

return false;
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

void FGInputSocket::Read(bool Holding)
{
/*if (!socket) return;
if (!socket) return;
if (!socket->GetConnectStatus()) return;

if (BlockingInput)
Expand Down Expand Up @@ -271,7 +270,7 @@ void FGInputSocket::Read(bool Holding)
" info\n\r\n");

} else {
//socket->Reply(string("Unknown command: ") + command + "\r\n");
socket->Reply(string("Unknown command: ") + command + "\r\n");
}

start = string_end;
Expand All @@ -285,7 +284,7 @@ void FGInputSocket::Read(bool Holding)
else
data.clear();
}
}*/
}

}

Expand Down

0 comments on commit 8286751

Please sign in to comment.