public class UDPPassiveSocket extends UDPSocket
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsRev |
static java.lang.String |
PASSIVE_SOCKET
The string used to identify a port.
|
Constructor and Description |
---|
UDPPassiveSocket(int port)
Create the socket.
|
Modifier and Type | Method and Description |
---|---|
java.net.DatagramPacket |
getRawPacket()
Returns the raw datagram packet.
|
java.net.DatagramSocket |
getRawSocket()
Returns the raw socket.
|
void |
write(byte[] b,
int offset,
int length)
Writes the given array to the socket address of the last packet received.
|
available, close, getReceiveBufferSize, read, read, read, readAndWait, write
getInputStream, getName, getOutputStream, getPort, getPortPool, hasError, readCurrent, setError, setInputStream, setOutputStream, setPortPool, setThread, write
public static final java.lang.String cvsRev
public static final java.lang.String PASSIVE_SOCKET
public UDPPassiveSocket(int port) throws BadParameterException, java.io.IOException
BadParameterException
java.io.IOException
public java.net.DatagramPacket getRawPacket()
public java.net.DatagramSocket getRawSocket()
public void write(byte[] b, int offset, int length) throws java.io.IOException
write
in interface PortInterface
write
in class Port
java.io.IOException
vib.utils.PortInterface#write(byte[], int, int)
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.