public Connection(string hostname, int port = 21, CommandSender.OnLogGenerated onSend = null, CommandSender.OnLogGenerated onReceive = null) { _remoteIpAddress = Dns.GetHostAddresses(hostname)[0]; _remotePort = port; _onSend = onSend; _onReceive = onReceive; }
public OperationPerformer(Socket socket, CommandSender.OnLogGenerated onSend = null, CommandSender.OnLogGenerated onReceive = null) { _commandSender = new CommandSender(socket, onSend, onReceive); }