Cast: UdpTransport to use UdpSocket instead of UdpServerSocket
commit631cc4039b6236c9d86b23fa29e592a421f82d6c
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Feb 2014 14:51:04 +0000 (13 14:51 +0000)
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 13 Feb 2014 14:51:04 +0000 (13 14:51 +0000)
tree1a03c60a9ac882732c7b29e1d419a87c3c501a80
parent4d5a4e0301895e4d81042510904183ddb224c1b5
Cast: UdpTransport to use UdpSocket instead of UdpServerSocket

UdpTransport is used by cast sender and receiver. When used in the cast
sender a bind cannot be done. So UdpTransport should use UdpSocket
and perform bind or connect based on the value of remote and local
address.

Tested this with cast_sender_app and cast_receiver_app.

Review URL: https://codereview.chromium.org/161913002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251001 0039d316-1c4b-4281-b951-d872f2087c98
media/cast/test/sender.cc
media/cast/transport/transport/udp_transport.cc
media/cast/transport/transport/udp_transport.h