mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
UDP initialization fixed
This commit is contained in:
parent
fb23363a70
commit
537ecb9198
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: abc-udp.c,v 1.3 2007/03/14 00:29:05 adamdunkels Exp $
|
||||
* $Id: abc-udp.c,v 1.4 2007/03/15 09:56:00 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -39,6 +39,7 @@
|
||||
*/
|
||||
|
||||
#include "net/rime.h"
|
||||
#include "contiki-net.h"
|
||||
|
||||
#define PORT 8096
|
||||
static struct uip_udp_conn *c;
|
||||
@ -46,9 +47,8 @@ static struct uip_udp_conn *c;
|
||||
PROCESS(abc_udp_process, "abc_udp");
|
||||
PROCESS_THREAD(abc_udp_process, ev, data)
|
||||
{
|
||||
struct abc_conn *c;
|
||||
|
||||
c = uip_udp_new(HTONS(PORT), NULL);
|
||||
c = udp_new(&uip_broadcast_addr, HTONS(PORT), NULL);
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user