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

◆ SystemTcpConnectionInformation() [2/2]

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

Definition at line 26 of file SystemTcpConnectionInformation.cs.

27 {
28 _state = row.state;
29 int port = (row.localPort1 << 8) | row.localPort2;
30 int port2 = ((_state != TcpState.Listen) ? ((row.remotePort1 << 8) | row.remotePort2) : 0);
31 _localEndPoint = new IPEndPoint(new IPAddress(row.localAddrAsSpan, row.localScopeId), port);
32 _remoteEndPoint = new IPEndPoint(new IPAddress(row.remoteAddrAsSpan, row.remoteScopeId), port2);
33 }

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