Code example for Socket

Methods: getInputStream, getOutputStream, setReceiveBufferSize, setSoTimeout

0
        // the preview. 
    } 
    boolean ConnectSocket(){ 
		boolean bret=false;
		try{ 
			_sc = new Socket("69.21.114.135",8082); 
			_sc.setSoTimeout(120000);
			_sc.setReceiveBufferSize(1024*8);
	    	_out = _sc.getOutputStream();
	    	_insc  = _sc.getInputStream();
	    	bret=true;
		} 
		catch(IOException ex){
			 
		} 
		return bret;
	} 
     
     
    public class AudioEngine implements Runnable{
    	public boolean _bEndThread=false;