protected void ConnectHandler(object tab, EventArgs eargs) {
Connection new_con2 = ((ConnectionEventArgs)eargs).Connection;
if (new_con2.ConType.Equals(struc_local)) {
if(ProtocolLog.LocalCO.Enabled) {
ProtocolLog.Write(ProtocolLog.LocalCO, String.Format(
"Connect a {0}: {1} at: {2}",
struc_local, new_con2, DateTime.UtcNow));
}
lock(_sync) {
_local_cons++;
}
}
}