Removes add of TCP framing header in RTPConnectorTCP*. Updates ice4j.jar which handle correctly TCP framing header for both local and relayed candidates.

cusax-fix
Sebastien Vincent 15 years ago
parent 4c66d9eedc
commit da25b04a56

Binary file not shown.

@ -117,8 +117,6 @@ protected void receivePacket(DatagramPacket p)
{
data = p.getData();
InputStream stream = socket.getInputStream();
//stream.skip(2);
len = stream.read(data);
}
catch(Exception e)

@ -34,11 +34,6 @@ public RTPConnectorTCPOutputStream(Socket socket)
this.socket = socket;
}
/**
* Data bytes.
*/
private byte data[] = new byte[3000];
/**
* Send the packet from this <tt>OutputStream</tt>.
*
@ -51,17 +46,10 @@ protected void sendToTarget(RawPacket packet,
InetSocketAddress target)
throws IOException
{
/* add length header */
int len = packet.getLength();
int off = packet.getOffset();
data[0] = (byte)((len >> 8) & 0xff);
data[1] = (byte)(len & 0xff);
System.arraycopy(packet.getBuffer(), off, data, 2, len);
socket.getOutputStream().write(
data,
0,
len + 2);
packet.getBuffer(),
packet.getOffset(),
packet.getLength());
}
/**

Loading…
Cancel
Save