This is the code i wrote in the my class: Command.cs.Code:public class Command { private IPAddress senderIP; public IPAddress SenderIP { get { return senderIP; } set { senderIP = value; } } private CommandType cmdType; public CommandType CommandType { get { return cmdType; } set { cmdType = value; } } private string commandBody; public string MetaData { get { return commandBody; } set { commandBody = value; } } // 2 contructor public Command(CommandType type, IPAddress targetMachine, string metaData) { this.cmdType = type; this.target = targetMachine; this.commandBody = metaData; } public Command(CommandType type, IPAddress targetMachine) { this.cmdType = type; this.target = targetMachine; this.commandBody = ""; } }
Thanks for any help




Reply With Quote