|
1
|
# PortProtocol |
|
2
|
|
|
3
|
- `TCP` is the default in `winrt_ContainerPortMapping.h`. |
|
4
|
- The value is passed directly to `WslcContainerPortMapping::protocol`. |
|
5
|
|
|
6
|
Underlying C values: |
|
7
|
|
|
8
|
- `TCP = 0` |
|
9
|
- `UDP = 1` |
|
10
|
|
|
11
|
```cpp |
|
12
|
ContainerPortMapping mapping{ 8080, 80, PortProtocol::TCP }; |
|
13
|
``` |