← Back to wkappbot-sdk
wkappbot-sdk ★★☆

# CDP placement port-to-PID filter (TryGetListeningPid byte-swap)

Byte-swap trap in TryGetListeningPid and how to verify. Read before modifying MyCdpContext.Placement.cs port resolution code.

user/developer
placement chrome cdp byte-swap port pid bug-prevention

## Steps

1. CONTEXT: TryGetListeningPid in MyCdpContext....
2. BYTE-SWAP TRAP: dwLocalPort is big-endian 16...
3. CORRECT swap (sdk 2c45ec56): int localPort =...
4. ((localPortBe >> 8) & 0xFF); -- swaps only t...
5. SKILL REFERENCE comment to place above TryGe...