Hi guys,
I'm implementing client / server services using Adam Dunkels's uIP (microIP) for embedded systems and i can already listen to a port and send a response using:
Code:
uip_listen(htons(1234));
and setting the UIP_APPCALL to call a response with:
Code:
uip_send(data,dataLenght);
at this point, its all working ok.
what i need is:
Start an active connection using uip as client to an free port at server.
I've already tried to use
Code:
u16_t ipaddr[2];
uip_ipaddr(ipaddr, 192,168,2,15);
uip_connect(&ipaddr, HTONS(2345));
and no connection was called. I've tried to connect and send data using
Code:
uip_connect(&ipaddr, HTONS(2345));
uip_send(data,dataLenght);
uip_arp_out();
ETH_Send();
no success, anyone has idea on how to make it work ?