code: public static InetSocketAddress readSocketAddress(ChannelBuffer buffer)
  	{
  		String remoteHost = NettyUtils.readString(buffer);
  		int remotePort = 0;
  		if (buffer.readableBytes() >= 4)
  		{
  			remotePort = buffer.readInt();
  		}
  		else
  		{
  			return null;
  		}
  		InetSocketAddress remoteAddress = null;
  		if (null != remoteHost)
  		{
  			remoteAddress = new InetSocketAddress(remoteHost, remotePort);
  		}
  		return remoteAddress;
  	}
docs: Read a socket address from a buffer. The socket address will be provided
  as two strings containing host and port.
  
  @param buffer
  The buffer containing the host and port as string.
  @return The InetSocketAddress object created from host and port or null
  in case the strings are not there.