| 790 static char buf[BUF_LEN]; |
790 static char buf[BUF_LEN]; |
| 791 int res; |
791 int res; |
| 792 res = wait_reply(buf, sizeof(buf)); |
792 res = wait_reply(buf, sizeof(buf)); |
| 793 if (res < 0) |
793 if (res < 0) |
| 794 return NULL; |
794 return NULL; |
| |
795 /* Apparently, the toc_config is optional. *VERY* Optional |
| 795 if (state != STATE_CONFIG) { |
796 if (state != STATE_CONFIG) { |
| 796 sprintf(debug_buff , "State should be %d, but is %d instead\n",STATE_CONFIG, state); |
797 sprintf(debug_buff , "State should be %d, but is %d instead\n",STATE_CONFIG, state); |
| 797 debug_print(debug_buff); |
798 debug_print(debug_buff); |
| |
799 |
| 798 return NULL; |
800 return NULL; |
| 799 } |
801 } |
| |
802 */ |
| 800 /* At this point, it's time to setup automatic handling of incoming packets */ |
803 /* At this point, it's time to setup automatic handling of incoming packets */ |
| 801 state = STATE_ONLINE; |
804 state = STATE_ONLINE; |
| 802 #ifdef _WIN32 |
805 #ifdef _WIN32 |
| 803 win32_r = gtk_timeout_add(1000, (GtkFunction)win32_read, NULL); |
806 win32_r = gtk_timeout_add(1000, (GtkFunction)win32_read, NULL); |
| 804 #else |
807 #else |