public class EncryptedRTPSocket
extends java.net.MulticastSocket
Constructor and Description |
---|
EncryptedRTPSocket(RTPCrypt crypt,
java.net.InetAddress addr,
int port)
Creates a new EncryptedRTPSocket bound to the specified port
|
EncryptedRTPSocket(RTPCrypt crypt,
java.net.InetAddress addr,
int port,
boolean isRTP)
Creates a new EncryptedRTPSocket bound to the specified port
|
EncryptedRTPSocket(RTPCrypt crypt,
int port)
Creates a new EncryptedRTPSocket bound to the specified port
|
EncryptedRTPSocket(RTPCrypt crypt,
int port,
boolean isRTP)
Creates a new EncryptedRTPSocket bound to the specified port
|
Modifier and Type | Method and Description |
---|---|
void |
receive(java.net.DatagramPacket p) |
void |
send(java.net.DatagramPacket p) |
void |
setEncryption(RTPCrypt crypt)
Sets the current encryption on the socket
|
getInterface, getLoopbackMode, getNetworkInterface, getTimeToLive, getTTL, joinGroup, joinGroup, leaveGroup, leaveGroup, send, setInterface, setLoopbackMode, setNetworkInterface, setTimeToLive, setTTL
bind, close, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass
public EncryptedRTPSocket(RTPCrypt crypt, int port) throws java.io.IOException
crypt
- The encryption or null for noneport
- The port to bind to (RTP if even, RTCP if odd)java.io.IOException
public EncryptedRTPSocket(RTPCrypt crypt, java.net.InetAddress addr, int port, boolean isRTP) throws java.io.IOException
crypt
- The encryption or null for noneport
- The port to bind to (RTP if even, RTCP if odd)isRTP
- True if the port is RTP, false if it is RTCPjava.io.IOException
public EncryptedRTPSocket(RTPCrypt crypt, java.net.InetAddress addr, int port) throws java.io.IOException
crypt
- The encryption or null for noneport
- The port to bind to (RTP if even, RTCP if odd)java.io.IOException
public EncryptedRTPSocket(RTPCrypt crypt, int port, boolean isRTP) throws java.io.IOException
crypt
- The encryption or null for noneport
- The port to bind to (RTP if even, RTCP if odd)isRTP
- True if the port is RTP, false if it is RTCPjava.io.IOException
public void send(java.net.DatagramPacket p) throws java.io.IOException
send
in class java.net.DatagramSocket
java.io.IOException
DatagramSocket.send(java.net.DatagramPacket)
public void receive(java.net.DatagramPacket p) throws java.io.IOException
receive
in class java.net.DatagramSocket
java.io.IOException
DatagramSocket.receive(java.net.DatagramPacket)
public void setEncryption(RTPCrypt crypt)
crypt
- The encryption algorithm, or null for none