Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SystemTcpConnectionInformation() [1/2]

System.Net.NetworkInformation.SystemTcpConnectionInformation.SystemTcpConnectionInformation ( in global::Interop::IpHlpApi::MibTcpRow row)
inlinepackage

Definition at line 17 of file SystemTcpConnectionInformation.cs.

18 {
19 _state = row.state;
20 int port = (row.localPort1 << 8) | row.localPort2;
21 int port2 = ((_state != TcpState.Listen) ? ((row.remotePort1 << 8) | row.remotePort2) : 0);
22 _localEndPoint = new IPEndPoint(row.localAddr, port);
23 _remoteEndPoint = new IPEndPoint(row.remoteAddr, port2);
24 }

References System.Net.NetworkInformation.SystemTcpConnectionInformation._localEndPoint, System.Net.NetworkInformation.SystemTcpConnectionInformation._remoteEndPoint, and System.Net.NetworkInformation.SystemTcpConnectionInformation._state.