none
Interoperating UDP and TCP binding questions

    Question

  • Hi all,

    I know I might be in the wrong forum to ask this question but I have no luck in getting an answer from asp.net (for asking udp binding in .NET 4.5), so I like to try my luck over here.

    Basically, I have 2 services: a TCP service and within that, it has a UDP service to send multicast messages as well as to receive multicast messages.

    The TCP service is used to provide clients with the usual service interface. However, some of the "operation contract" of the TCP service will perform multicasting of messages to all connected UDP clients (sometimes including itself).

    for example:

    client side -

    TcpServiceClient proxy = new TcpServiceClient(); 
     
    proxy.MulticastString("This is a UDP message"); 
     
    proxy.Close();

    Service side -

    Public void MulticastString(string udpMsg) 
    { 
       //Do some other stuff 
       ... 
       udpProxy.SendMessage(udpMsg); 
    }

    How  to create and use both the TCP Service and the UDP service?

    If possible please provide a full example to works out this problem which include sending and receiving of upd messages.

    Thanks.


    • Edited by eva2002 Tuesday, March 13, 2012 1:45 AM
    Tuesday, March 13, 2012 1:44 AM

Answers

All replies