Listening to Multiple Ports in c
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Listening to Multiple Ports in c

  1. #1
    Join Date
    Jul 2011
    Posts
    2

    Listening to Multiple Ports in c

    Hi, Can some one help me or guide me on how to access two different ports on a same program

    Assume that a server sends a mpeg2ts encapsulated using udp to a multicast group address say 239.0.0.1. It sends two streams to the same multicast address but to different ports say 1300 and 1400.

    In my program i have to access these to ports at a time. Is this possible???

    Please Help me with this

    Thank u

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,606

    Re: Listening to Multiple Ports in c

    Create two sockets: one listening the port 1300, another - the port 1400...
    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2011
    Posts
    2

    Re: Listening to Multiple Ports in c

    Can u please provide me with some sample code how to perform it.
    I tried but was not able to do it

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,606

    Re: Listening to Multiple Ports in c

    What was your problem?
    Could you create one socket to listen one port?
    You could try to search for a sample code in the language you are using (which one, BTW?) in Web...
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center