OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ |
| 6 #define CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "net/base/ip_endpoint.h" |
| 10 |
| 11 // This class represents an end point to which communication is done by |
| 12 // UDP. The interface does not allow direct access to a UDP socket but |
| 13 // represents a transport mechanism. |
| 14 class CastUdpTransport { |
| 15 public: |
| 16 CastUdpTransport(); |
| 17 ~CastUdpTransport(); |
| 18 |
| 19 // Begin the transport by specifying the remote IP address. |
| 20 // The transport will use UDP. |
| 21 void Start(net::IPEndPoint remote_address); |
| 22 |
| 23 // Terminate the communication with the end point. |
| 24 void Stop(); |
| 25 |
| 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(CastUdpTransport); |
| 28 }; |
| 29 |
| 30 #endif // CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ |
OLD | NEW |