public ReceiverController(SocketCore socketCore, ICloud receiver) { this.socketCore = socketCore; socketCore.application = receiver; // Start receive package from server async (new Thread(new ThreadStart(Receive))).Start(); }
public Connection(string dns, int port, ICloud receiver) { socketCore.socket.Connect(getIpAddress(dns), port); socketCore.Connection(this); new ReceiverController(socketCore, receiver); }