日期:2014-05-18 浏览次数:20974 次
Socket skt = ...; switch (skt.ProtocolType) { case ProtocolType.Tcp: break; case ProtocolType.Udp: break; default: break; }