Removed old contiki-1.x-based code

This commit is contained in:
adamdunkels 2006-06-17 23:07:35 +00:00
parent 9e9a00fe03
commit dfd8026afc

View file

@ -47,7 +47,7 @@ n(u16_t num, char *ptr)
return ptr; return ptr;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static unsigned short /*static unsigned short
ps_generate(void *state) ps_generate(void *state)
{ {
struct ek_proc *p = (struct ek_proc *)state; struct ek_proc *p = (struct ek_proc *)state;
@ -61,7 +61,7 @@ ps_generate(void *state)
*ptr++ = '\n'; *ptr++ = '\n';
return ptr - (char *)uip_appdata; return ptr - (char *)uip_appdata;
} }*/
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static static
PT_THREAD(handle_connection(struct cmdd_state *s)) PT_THREAD(handle_connection(struct cmdd_state *s))
@ -79,14 +79,14 @@ PT_THREAD(handle_connection(struct cmdd_state *s))
PSOCK_CLOSE_EXIT(&s->s); PSOCK_CLOSE_EXIT(&s->s);
memb_free(&conns, s); memb_free(&conns, s);
tcp_markconn(uip_conn, NULL); tcp_markconn(uip_conn, NULL);
} else if(strncmp(s->inputbuf, "ps", 2) == 0) { /* } else if(strncmp(s->inputbuf, "ps", 2) == 0) {
PSOCK_GENERATOR_SEND(&s->s, ps_generate, ek_procs); PSOCK_GENERATOR_SEND(&s->s, ps_generate, ek_procs);
for(s->i = 0; s->i < 40; s->i++) { for(s->i = 0; s->i < 40; s->i++) {
if(ek_process(s->i) != NULL) { if(ek_process(s->i) != NULL) {
PSOCK_GENERATOR_SEND(&s->s, ps_generate, ek_process(s->i)); PSOCK_GENERATOR_SEND(&s->s, ps_generate, ek_process(s->i));
} }
} }*/
} else if(strncmp(s->inputbuf, "send", 4) == 0) { } else if(strncmp(s->inputbuf, "send", 4) == 0) {
send_udp = 1; send_udp = 1;
PSOCK_WAIT_UNTIL(&s->s, send_udp == 0); PSOCK_WAIT_UNTIL(&s->s, send_udp == 0);