public override string ToString() { string sourceInfo; string destinationInfo; if (tcpTransfer) { sourceInfo = sourceHost.ToString() + " TCP " + sourcePort; destinationInfo = destinationHost.ToString() + " TCP " + destinationPort; } else { sourceInfo = sourceHost.ToString() + " UDP " + sourcePort; destinationInfo = destinationHost.ToString() + " UDP " + destinationPort; } return(filename + "\t" + sourceInfo + "\t" + destinationInfo); }