LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-10-2016, 05:22 PM   #1
erickdouglas
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
Can't use Adam Dunkels`s uIP(MicroIP) as client


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 ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Synonym of Fedora QA -- Adam Williamson LXer Syndicated Linux News 0 08-23-2014 03:12 PM
LXer: Rehire Adam Williamson LXer Syndicated Linux News 0 12-14-2008 08:30 PM
64 bit Linux on Coleco Adam? MensaWater General 5 10-22-2005 05:08 PM
uip address from UTMP masand Programming 0 04-27-2004 06:59 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration