Reading packets from UDP port

Discussion in 'C++' started by Pashlipops, Oct 15, 2006.

  1. Pashlipops

    Pashlipops Guest

    Hi there

    I am looking for some guidance.

    I am new to C++ and whilst I am reading up about the language, my
    actual goal is to create a program that reads a UDP packet sent by a
    data logger and displays the reults real-time on screen.

    The UDP packet is sent every 200ms. I know the port. I have Windows
    Vicual C++ Express Edition running under XP.

    Can anyone point me in the direction of any source code that can do any
    of this? I have looked at teh source code for Wireshark, but cannot
    identify which bit of the code is reading the packets.

    TIA

    PP
     
    Pashlipops, Oct 15, 2006
    #1
    1. Advertising

  2. Pashlipops

    Moonlit Guest

    Hi,

    Look up
    socketopen read write select


    http://msdn.microsoft.com/library/d...y/en-us/winsock/winsock/winsock_reference.asp






    Regards, Ron AF Greve

    http://moonlit.xs4all.nl

    "Pashlipops" <> wrote in message
    news:...
    > Hi there
    >
    > I am looking for some guidance.
    >
    > I am new to C++ and whilst I am reading up about the language, my
    > actual goal is to create a program that reads a UDP packet sent by a
    > data logger and displays the reults real-time on screen.
    >
    > The UDP packet is sent every 200ms. I know the port. I have Windows
    > Vicual C++ Express Edition running under XP.
    >
    > Can anyone point me in the direction of any source code that can do any
    > of this? I have looked at teh source code for Wireshark, but cannot
    > identify which bit of the code is reading the packets.
    >
    > TIA
    >
    > PP
    >
     
    Moonlit, Oct 15, 2006
    #2
    1. Advertising

  3. Pashlipops

    Pashlipops Guest

    Thanks Moonlit!

    Moonlit wrote:

    > Hi,
    >
    > Look up
    > socketopen read write select
    >
    >
    > http://msdn.microsoft.com/library/d...y/en-us/winsock/winsock/winsock_reference.asp
    >
    >
    >
    >
    >
    >
    > Regards, Ron AF Greve
    >
    > http://moonlit.xs4all.nl
    >
    > "Pashlipops" <> wrote in message
    > news:...
    > > Hi there
    > >
    > > I am looking for some guidance.
    > >
    > > I am new to C++ and whilst I am reading up about the language, my
    > > actual goal is to create a program that reads a UDP packet sent by a
    > > data logger and displays the reults real-time on screen.
    > >
    > > The UDP packet is sent every 200ms. I know the port. I have Windows
    > > Vicual C++ Express Edition running under XP.
    > >
    > > Can anyone point me in the direction of any source code that can do any
    > > of this? I have looked at teh source code for Wireshark, but cannot
    > > identify which bit of the code is reading the packets.
    > >
    > > TIA
    > >
    > > PP
    > >
     
    Pashlipops, Oct 15, 2006
    #3
  4. Pashlipops

    Guest

    Pashlipops wrote:
    > Hi there
    >
    > I am looking for some guidance.
    >
    > I am new to C++ and whilst I am reading up about the language, my
    > actual goal is to create a program that reads a UDP packet sent by a
    > data logger and displays the reults real-time on screen.
    >
    > The UDP packet is sent every 200ms. I know the port. I have Windows
    > Vicual C++ Express Edition running under XP.
    >
    > Can anyone point me in the direction of any source code that can do any
    > of this? I have looked at teh source code for Wireshark, but cannot
    > identify which bit of the code is reading the packets.
    >
    > TIA
    >
    > PP

    Check out: http://asio.sourceforge.net/.
     
    , Oct 15, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Chin

    receive udp packets on windows xp

    Andrew Chin, Dec 8, 2005, in forum: Java
    Replies:
    3
    Views:
    1,001
    Roedy Green
    Dec 8, 2005
  2. Gerald Klix
    Replies:
    0
    Views:
    1,325
    Gerald Klix
    Oct 26, 2005
  3. Janto Dreijer

    UDP packets to PC behind NAT

    Janto Dreijer, Sep 15, 2006, in forum: Python
    Replies:
    12
    Views:
    906
    John J. Lee
    Sep 17, 2006
  4. sreehari
    Replies:
    7
    Views:
    377
  5. Xanti

    disappiring UDP packets

    Xanti, Mar 8, 2007, in forum: Java
    Replies:
    1
    Views:
    280
    Daniel Pitts
    Mar 8, 2007
Loading...

Share This Page