/// <summary> /// Basic Constructor taking in all network items needed. /// </summary> /// <param name="ServerIP"></param> /// <param name="ServerPort"></param> /// <param name="ListenPort"></param> public TaskManager(string ServerIP, int ServerPort, int ListenPort) { ManagerActor.LocalPort = ListenPort; ManagerActor.ServerIP = ServerIP; ManagerActor.ServerPort = ServerPort; processor = new Processor(); nra = new NetworkRecieverActor(processor, false, ManagerActor.LocalPort); }
/// <summary> /// Basic Constructor, needs all 3 parameters. /// </summary> /// <param name="ServerIP"></param> /// <param name="ServerPort"></param> /// <param name="LocalPort"></param> public Node(string ServerIP, int ServerPort, int LocalPort) { ManagerActor.ServerIP = ServerIP; ManagerActor.ServerPort = ServerPort; ManagerActor.LocalPort = LocalPort; Reciever = new RecieverActor(); NetworkReciever = new NetworkRecieverActor(Reciever, false, ManagerActor.LocalPort); }
/// <summary> /// Basic Constructor /// </summary> /// <param name="ListenPort"></param> public Server(int ListenPort) { ManagerActor.LocalPort = ListenPort; processor = new Processor(); nra = new NetworkRecieverActor(processor, true, ManagerActor.LocalPort); }