| Index: ppapi/c/dev/ppb_transport_dev.h
|
| diff --git a/ppapi/c/dev/ppb_transport_dev.h b/ppapi/c/dev/ppb_transport_dev.h
|
| index fb1513ef690f52bcbdfc41a5a2af18ad877ff41a..26a60bc1b3522ace714921c5b310506f4c38fe04 100644
|
| --- a/ppapi/c/dev/ppb_transport_dev.h
|
| +++ b/ppapi/c/dev/ppb_transport_dev.h
|
| @@ -48,7 +48,11 @@ typedef enum {
|
| PP_TRANSPORTPROPERTY_TCP_NO_DELAY = 7,
|
|
|
| // Delay for ACK packets in milliseconds. By default set to 100ms.
|
| - PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 8
|
| + PP_TRANSPORTPROPERTY_TCP_ACK_DELAY = 8,
|
| +
|
| + // Types of ports to use. An integer that is a bit-mast of
|
| + // PP_TransportPorts values. By default all ports are enabled.
|
| + PP_TRANSPORTPROPERTY_PROTOCOLS = 9
|
| } PP_TransportProperty;
|
| PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_TransportProperty, 4);
|
|
|
| @@ -60,6 +64,17 @@ typedef enum {
|
| PP_TRANSPORTRELAYMODE_GOOGLE = 1
|
| } PP_TransportRelayMode;
|
|
|
| +typedef enum {
|
| + PP_TRANSPORTPROTOCOL_UDP = 1 << 0,
|
| + PP_TRANSPORTPROTOCOL_TCP = 1 << 1,
|
| + PP_TRANSPORTPROTOCOL_STUN = 1 << 2,
|
| + PP_TRANSPORTPROTOCOL_RELAY_UDP = 1 << 3,
|
| + PP_TRANSPORTPROTOCOL_RELAY_TCP = 1 << 4,
|
| + PP_TRANSPORTPROTOCOL_RELAY_SSLTCP = 1 << 5,
|
| +
|
| + PP_TRANSPORTPROTOCOL_ALL = 0xFFFFFFFF
|
| +} PP_TransportProtocol;
|
| +
|
| struct PPB_Transport_Dev {
|
| // Creates a new transport object with the specified name using the
|
| // specified protocol.
|
|
|