Package org.one.stone.soup.screen.multicaster

Examples of org.one.stone.soup.screen.multicaster.ScreenMulticaster


      height += iStream.read();

      int frameSize = width*height;
      String sessionId = header.getAttributeValueByName("id");
     
      ScreenMulticaster multicaster = new ScreenMulticaster(socket,frameSize,sessionId,this);
     
      sessions.put( header.getAttributeValueByName("id"),multicaster );
     
      return header.getAttributeValueByName("id");
    }
View Full Code Here


    }
  }
   
  public void play(String id,String alias,Socket socket) {
    try{
      ScreenMulticaster multicaster = (ScreenMulticaster)sessions.get( id );
      if(multicaster==null)
      {
        socket.close();
        return;
      }

      OutputStream oStream = socket.getOutputStream();
     
      oStream.write( (width & 0x0000FF00) >>>8 );
      oStream.write( (width & 0x000000FF) );
   
      oStream.write( (height & 0x0000FF00) >>>8 );
      oStream.write( (height & 0x000000FF) )
      oStream.flush();
     
      multicaster.addClient( alias,socket );
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.one.stone.soup.screen.multicaster.ScreenMulticaster

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.