Example #1
0
 public static void OutputString(string commandName, SoketSessionHandle session, StringRequestInfo requestInfo)
 {
     nowTime = DateTime.Now.ToString(timeFormat) + "\t";
     Console.WriteLine($"{nowTime}{commandName} {session.RemoteEndPoint.Address.ToString() + ':' + session.RemoteEndPoint.Port} 命令:{requestInfo.Key } Body :{requestInfo.Body }");
 }
Example #2
0
 public static string ToString(SoketSessionHandle session, StringRequestInfo requestInfo)
 {
     nowTime = DateTime.Now.ToString(timeFormat) + "\t";
     return($"{nowTime}{session.RemoteEndPoint.Address.ToString() + ':' + session.RemoteEndPoint.Port} 命令:{requestInfo.Key } Body :{requestInfo.Body } ");
 }