Code example for MulticastSocket

Methods: getLocalPort

0
	public int getPort() { 
		return mPort;
	} 
 
	public int getLocalPort() { 
		return mSocket.getLocalPort();
	} 
 
	/**  
	 * Returns an available buffer from the FIFO, it can then directly be modified.  
	 * Call {@link #commitBuffer(int)} to send it over the network.  
	 * @throws InterruptedException  
	 **/ 
	public byte[] requestBuffer() throws InterruptedException { 
		mBufferRequested.acquire();
		mBuffers[mBufferIn][1] &= 0x7F;
		return mBuffers[mBufferIn];
	} 
 
	/** Sends the RTP packet over the network. */ 
	public void commitBuffer(int length) throws IOException {