\r
\r
\r
+\r
int\r
main(int argc, char *argv[])\r
{\r
int pos = 0;\r
char line[MAXLINE];\r
\r
+ fd_set rfds;\r
+ fd_set wfds;\r
+ struct timeval tv;\r
+ int retval;\r
+\r
+\r
+ tv.tv_sec = 5;\r
+ tv.tv_usec = 0;\r
+\r
+\r
+ FD_ZERO(&rfds);\r
+ FD_SET(STDIN_FILENO, &rfds);\r
+\r
+ FD_ZERO(&wfds);\r
+ FD_SET(STDOUT_FILENO, &wfds);\r
+\r
+ struct GNUNET_SERVER_MessageStreamTokenizer * stdin_mst;\r
+ struct GNUNET_SERVER_MessageStreamTokenizer * file_in_mst;\r
+\r
+ stdin_mst = GNUNET_SERVER_mst_create(&stdin_send, NULL);\r
+ file_in_mst = GNUNET_SERVER_mst_create(&file_in_send, NULL);\r
+\r
while (closeprog == 0)\r
{\r
readc = 0;\r
\r
+\r
while (readc < sizeof( struct RadiotapHeader) + sizeof(struct GNUNET_MessageHeader)){\r
if ((rv = read(STDIN_FILENO, line, MAXLINE)) < 0)\r
{\r