Code example for SocketChannel

Methods: socket

0
	} 
	 
	public String toString(){ 
		StringBuilder sb = new StringBuilder(); 
		if(clientChannel != null){ 
			sb.append("Rpc request from:" + clientChannel.socket().getRemoteSocketAddress() + "]"); 
		} 
		if(requestBuffer != null){ 
			sb.append(" [request data:" + new String(requestBuffer) + "]"); 
		} 
		if(reponseBuffer != null){ 
			sb.append(" [response data:" + new String(reponseBuffer)+ "]"); 
		} 
		return sb.toString(); 
	} 
}