protected RSApplet(IRunnableStarter runnableStarterStrategy) { RunnableStarterStrategy = runnableStarterStrategy ?? throw new ArgumentNullException(nameof(runnableStarterStrategy)); delayTime = 20; minDelay = 1; otims = new long[10]; debugRequested = false; clearScreen = true; awtFocus = true; keyStatus = new int[128]; inputBuffer = new int[128]; }
//TODO: Add exception documentation /// <summary> /// /// </summary> /// <exception cref=""></exception> /// <returns></returns> public RSSocket(IRunnableStarter runnablerStarter, TcpClient socket1) { closed = false; isWriter = false; hasIOError = false; RunnableStarterService = runnablerStarter; socket = socket1; socket.SendTimeout = 30000; socket.NoDelay = true; inputStream = socket.GetStream(); outputStream = socket.GetStream(); }
public DefaultRsSocketFactory(IRunnableStarter runnableStarter) { RunnableStarter = runnableStarter ?? throw new ArgumentNullException(nameof(runnableStarter)); }
public RsUnityClient(ClientConfiguration config, UnityRsGraphics graphicsObject, IRunnableStarter runnableStarterStrategy, IRsSocketFactory socketFactory) : base(config, new DefaultBufferFactory(), runnableStarterStrategy, socketFactory) { if (config == null) { throw new ArgumentNullException(nameof(config)); } GraphicsObject = graphicsObject ?? throw new ArgumentNullException(nameof(graphicsObject)); }