diff --git a/src/protocol.h b/src/protocol.h index 346aa95..704858d 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -57,7 +57,7 @@ #define MESSAGE_INVALID_ARGUMENT "invalid argument" // defines the function to send responses to sender -#define SEND_TO_SENDER(id,msg,len) socket_send((id),(msg),(len)+1) +#define SEND_TO_SENDER(id,msg,len) if(id==1)fprintf(stdout,"%s\n",msg); else socket_send((id),(msg),(len)+1) /*