}
}
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();
}