- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am really looking for some help in how to write code for my FPGA board(nanoboard 3000) for implementing a TCP Client using lwIP API using the commands like netconn_connect() and so on. I found some documentation on how to build a TCP server but I could not find any help for TCP client. Any help regarding on how to build a client would be great. If any body has an idea regarding one of teh three topics which i have mentioned below, then that would be helping me a lot: 1)I am looking for some basic explanation like what are the steps i need to consider to write a client code from scratch. 2)or a sample code which shows the basic implementation of TCP client using lwIP API 3)or what changes should I need to make in the server program so that it can run as a client Kind Regards, Teknical GreekLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm confused by "TCP client". Can you be more specific? What is the server responding to? lwIP supports TCP clients and servers both using it's low-level (RAW) API, a middle level API Netconn and the highest level as sockets.
The choice of API depends mainly on 2 things: 1. Are you using an OS? 2. What is your performance requirement? But you're going in the right direction - you use connect and when you're informed of the connection (API-specific) you make requests from the server - this is application dependent unless you're talking about known servers like HTTP or FTP etc. Here are 3 good references: the lwIP users WEB page, Wiki and user email list sign up: https://savannah.nongnu.org/projects/lwip/ http://en.wikipedia.org/wiki/lwip http://lists.nongnu.org/mailman/listinfo/lwip-users The last link is where you sign up for joining the lwIP user mailing list which then allows you to post and receive email from other users and developers. Bill- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
thanks for the reply. I am working on a FPGA board which is called Nano Board I want this to act as client and it should connect to the Asterisk server which acts like server. For implementing this i need some reference or example code which is "Simple TCP client using lwip API data types like netconn() and netbuf ". searched a lot in web, but found examples only using socket programming which is not my area of interest. Kind Regards, Greek
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page