예제 #1
0
        public bool ContinueExecuteCommand(MultiSocketModel tempSocket, ServerCommand command)
        {
            switch (command.Type)
            {
            case CommandType.DownloadUDP:
                return(downloadService.ContinueExecute(tempSocket.handler, tempSocket.EndPointUDPWrite, tempSocket.EndPointUDPRead, tempSocket.socketUDP, tempSocket.socketUDPRead, command, ProtocolType.Udp));

            case CommandType.UploadUDP:
                return(uploadService.ContinueExecute(tempSocket.handler, tempSocket.EndPointUDPRead, tempSocket.EndPointUDPWrite, tempSocket.socketUDPRead, tempSocket.socketUDP, command, ProtocolType.Udp));
            }
            return(false);
        }