public TcpConnectionInfo(TCP_ESTATS_PATH_ROD_v0 stats, MIB_TCPROW_OWNER_MODULE ownerRow, MIB_TCPROW tcpRow, TCPIP_OWNER_MODULE_BASIC_INFO ownerInfo) { this.stats = stats; this.ownerRow = ownerRow; this.tcpRow = tcpRow; this.ownerInfo = ownerInfo; }
public static bool GetPerTcpConnectionEStats_Path(MIB_TCPROW_OWNER_PID row, ref TCP_ESTATS_PATH_ROD_v0 rod) { var rw = new TCP_ESTATS_PATH_RW_v0(); if (!GetPerTcpConnectionEStats(row, TCP_ESTATS_TYPE.TcpConnectionEstatsPath, ref rw, ref rod)) { return(false); } if (rw.EnableCollection) { return(true); } rw.EnableCollection = true; if (!SetPerTcpConnectionEStats(row, TCP_ESTATS_TYPE.TcpConnectionEstatsPath, ref rw, nameof(rw.EnableCollection))) { return(false); } if (!GetPerTcpConnectionEStats(row, TCP_ESTATS_TYPE.TcpConnectionEstatsPath, ref rw, ref rod)) { return(false); } return(rw.EnableCollection); }
public void SetStats(TCP_ESTATS_PATH_ROD_v0 stats) { this.stats = stats; }