NON WORKING CODE
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <sys/select.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "laserblast.h"
|
||||
|
||||
#include "burpmsg.h"
|
||||
|
||||
@@ -37,6 +38,9 @@ switch(header->msgtype) {
|
||||
case BURP_SCENE:
|
||||
txt_type = "scene";
|
||||
break;
|
||||
case BURP_TEXTE:
|
||||
txt_type = "texte";
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "burpmsg at %p : invalid msgtype %d\n",
|
||||
@@ -44,7 +48,7 @@ switch(header->msgtype) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
fprintf(stderr, "%4d %12s %9d %3d\n",
|
||||
fprintf(stderr, "type %4d/%-8s serial %9d szdata %3d\n",
|
||||
header->msgtype, txt_type, header->serial, header->szdata);
|
||||
|
||||
return 0;
|
||||
@@ -80,6 +84,8 @@ for(;;) { /* start of infinite loop */
|
||||
foo, sizeof(BurpMsg));
|
||||
}
|
||||
display_burp_msg(&message, NULL);
|
||||
/* read appended datas */
|
||||
|
||||
}
|
||||
else {
|
||||
/* got a time out */
|
||||
|
||||
Reference in New Issue
Block a user