Example #1
0
        public static void TrySendMessage(Socket serverSocket, SMBMessage message)
        {
            SessionMessagePacket packet = new SessionMessagePacket();

            packet.Trailer = message.GetBytes();
            TrySendPacket(serverSocket, packet);
        }
Example #2
0
        public static void TrySendMessage(StateObject state, SMBMessage reply)
        {
            SessionMessagePacket packet = new SessionMessagePacket();

            packet.Trailer = reply.GetBytes();
            TrySendPacket(state, packet);
#if DEBUG
            Log("[{0}] Reply sent: {1} Commands, First Command: {2}, Packet length: {3}", DateTime.Now.ToString("HH:mm:ss:ffff"), reply.Commands.Count, reply.Commands[0].CommandName.ToString(), packet.Length);
#endif
        }