Code example for LocalServerSocket

0
	private LocalServerSocket lss;
	 
	public LocalServer(int session_id) {
		 
		try { 
			lss = new LocalServerSocket("com.vilkas04.ol-" + session_id);
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		 
		try { 
			receiver = new LocalSocket();
			receiver.connect(new LocalSocketAddress("com.vilkas04.ol-" + session_id));
			receiver.setReceiveBufferSize(500000);
			receiver.setSendBufferSize(500000);
			sender = lss.accept();
			sender.setReceiveBufferSize(500000);
			sender.setSendBufferSize(500000);
		} catch (IOException e2) {
			// TODO Auto-generated catch block