Exemple #1
0
 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];
 }
Exemple #2
0
 //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();
 }
Exemple #3
0
 public DefaultRsSocketFactory(IRunnableStarter runnableStarter)
 {
     RunnableStarter = runnableStarter ?? throw new ArgumentNullException(nameof(runnableStarter));
 }
Exemple #4
0
 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));
 }