/// <summary> /// Instantiates the receiving form and the the TCP listener, but lets the BackgroundWorker /// in Start.cs to thread the socket's actions. /// </summary> /// <param name="gui"> /// Not used. /// </param> /// <param name="port"> /// Not used. /// </param> public Receiver(TrailbreakerReceiverForm gui, int port) { _receivingForm = gui; _listener = new TcpListener(IpAddress, port); }
/// <summary> /// Simply sets the receiving form. Used when someone accesses the BlockCreator. /// </summary> /// <param name="form"> /// Either a valid instance of BlockCreatorGui or PageObjectCreatorGui. /// </param> public static void SetReceivingForm(TrailbreakerReceiverForm form) { _receivingForm = form; }