Code example for Socket

Methods: getInputStreamgetOutputStreamsetReceiveBufferSizesetSoTimeout

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{
Connect your IDE to all the code out there  Get Codota for Java