Working an message handling ...

FossilOrigin-Name: 0003352d0d85b794da58c08fffb0df1066a808b63b060b28cff74b4c87ca675b
This commit is contained in:
7u83@mail.ru
2014-08-22 06:21:38 +00:00
parent 8c77dec5a3
commit b68642eec4
4 changed files with 44 additions and 27 deletions

View File

@ -4,7 +4,6 @@
#include "sock.h"
#include "cw_util.h"
#include <stdio.h>
struct cwrmsg * conn_get_response(struct conn * conn)
{
@ -14,11 +13,6 @@ struct cwrmsg * conn_get_response(struct conn * conn)
int type = cwmsg->type+1;
printf ("Awaiting response message for type=%d\n",type);
struct cwrmsg * cwrmsg;
int i;
@ -32,7 +26,6 @@ struct cwrmsg * conn_get_response(struct conn * conn)
cw_dbg(DBG_CW_MSG,"Received message from %s, type=%d - %s"
,sock_addr2str(&conn->addr),cwrmsg->type,cw_msgtostr(cwrmsg->type));
if (cwrmsg->type == type){
printf("Jea!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11\n");
return cwrmsg;
}