master
md 20 lines 588 Bytes
Rendered Raw
1 # WslcContainerPortMapping
2
3 ```c
4 typedef struct WslcContainerPortMapping
5 {
6 _In_ uint16_t windowsPort; // Port on Windows host
7 _In_ uint16_t containerPort; // Port inside container
8 _In_ WslcPortProtocol protocol; // TCP or UDP
9
10 // if you want to override the default binding address
11 _In_opt_ struct sockaddr_storage* windowsAddress; // accepts ipv4/6
12 } WslcContainerPortMapping;
13 ```
14
15 | Field | Type |
16 |---|---|
17 | `windowsPort` | `uint16_t` |
18 | `containerPort` | `uint16_t` |
19 | `protocol` | `WslcPortProtocol` |
20 | `windowsAddress` | `struct sockaddr_storage*` |