From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ariel Rodriguez Subject: Re: socket programming with DPDK? Date: Sat, 15 Nov 2014 12:36:34 -0300 Message-ID: References: <20141115132832.GC17037@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 To: Neil Horman , dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <20141115132832.GC17037-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi , im succesfully integrate boost asio c++ code with dpdk libraries. I do packet processing with dpdk collecting statistics of protocol usage and then use a extern function to send the statistics (custom struct) through a boost socket in c++ code. Boost libraries use netinet/in.h internally . Maybe the workaround is separete the compiling units and not mix the header files. Maybe this can help you. Regards. On Nov 15, 2014 10:28 AM, "Neil Horman" wrote: > On Sat, Nov 15, 2014 at 04:08:47PM +0900, Choonho Son wrote: > > Hi, > > > > I am making netflow collector with DPDK. > > I need to export result to another server with socket programming. > > But I can not include which defines struct sockaddr_in. > > > > How can I make application with traditional socket programming and DPDK? > > > > Thanks. > > > > Choonho Son > > > Why can't you add netinet/in.h? Are you getting an error when doing so? I > vaguely recall someone posting a fix for an include error for that file, > but I > don't recall its disposition > Neil > >