Skip to content
Snippets Groups Projects
Commit 13cf73e5 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Message to know that server is running

parent 87b88f0d
No related branches found
No related tags found
1 merge request!1Lento
......@@ -6,6 +6,7 @@
int main(){
int sockt = ConexaoRawSocket(DEVICE);
Protocol protocol;
cout << "Você está rodando o servidor Caco\n";
while(true){
int status = protocol.recvMessage(sockt);
if(status > 0){
......@@ -15,6 +16,7 @@ int main(){
}else if(status == CD){
cd(protocol.getDataAsString());
}else if(status == LS){
cout << "Recebeu LS";
string output = ls(protocol.getDataAsString());
//TODO: send output back
}else if(status == PUT){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment