jigar-joshi / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

How to use tcp ports for data communication for type local candidates #218

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hi All,
I want to use the TCP Ports for data contents. I saw that in phase 0 always 
select the UDP. How can I uses it to select the TCP instead.
Changes I did was I disabled the UDP ports thinking it will disable TCP and I 
don't use Relay and there TCP will be selected.

Can you guide me how Can I use for TCP ports.
I did following changes in callclient.cc in call example code to test this
  talk_base::SocketAddress stun_addr("stun.l.google.com", 19302);
  port_allocator_ =  new cricket::BasicPortAllocator(
      network_manager_, stun_addr, talk_base::SocketAddress(),
      talk_base::SocketAddress(), talk_base::SocketAddress());

  portallocator_flags_ = cricket::PORTALLOCATOR_DISABLE_UDP;

  if (portallocator_flags_ != 0) {
    port_allocator_->set_flags(portallocator_flags_);
  }

Thanks in advance for helping in this issue.

Thanks.
Regards,
Umesh

Original issue reported on code.google.com by chandaku...@gmail.com on 30 Sep 2011 at 7:21

GoogleCodeExporter commented 9 years ago

Original comment by juberti@google.com on 31 May 2013 at 8:48