DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ariel Rodriguez <arodriguez@callistech.com>
To: Neil Horman <nhorman@tuxdriver.com>, dev@dpdk.org
Subject: Re: [dpdk-dev] socket programming with DPDK?
Date: Sat, 15 Nov 2014 12:36:34 -0300	[thread overview]
Message-ID: <CADoa0basTBW4tdLM7wREom6Cej6aOJ_jxZFLwF5yBHR82_pF=Q@mail.gmail.com> (raw)
In-Reply-To: <20141115132832.GC17037@localhost.localdomain>

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" <nhorman@tuxdriver.com> 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 <netinet/in.h> 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
>
>

      parent reply	other threads:[~2014-11-15 15:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-15  7:08 Choonho Son
2014-11-15 13:28 ` Neil Horman
2014-11-15 14:22   ` Thomas Monjalon
2014-11-15 15:36   ` Ariel Rodriguez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADoa0basTBW4tdLM7wREom6Cej6aOJ_jxZFLwF5yBHR82_pF=Q@mail.gmail.com' \
    --to=arodriguez@callistech.com \
    --cc=dev@dpdk.org \
    --cc=nhorman@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).