src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java

Print this page

        

*** 97,107 **** throws SocketException; /** * Sends a datagram packet. The packet contains the data and the * destination address to send the packet to. ! * @param packet to be sent. */ protected abstract void send(DatagramPacket p) throws IOException; /** * Connects a datagram socket to a remote destination. This associates the remote --- 97,107 ---- throws SocketException; /** * Sends a datagram packet. The packet contains the data and the * destination address to send the packet to. ! * @param p to be sent. */ protected abstract void send(DatagramPacket p) throws IOException; /** * Connects a datagram socket to a remote destination. This associates the remote
*** 128,144 **** connectedPort = -1; } /** * Peek at the packet to see who it is from. ! * @param return the address which the packet came from. */ protected abstract int peek(InetAddress i) throws IOException; protected abstract int peekData(DatagramPacket p) throws IOException; /** * Receive the datagram packet. ! * @param Packet Received. */ protected synchronized void receive(DatagramPacket p) throws IOException { receive0(p); } --- 128,144 ---- connectedPort = -1; } /** * Peek at the packet to see who it is from. ! * @param i the address to populate with the sender address */ protected abstract int peek(InetAddress i) throws IOException; protected abstract int peekData(DatagramPacket p) throws IOException; /** * Receive the datagram packet. ! * @param p the packet to receive into */ protected synchronized void receive(DatagramPacket p) throws IOException { receive0(p); }
*** 146,156 **** protected abstract void receive0(DatagramPacket p) throws IOException; /** * Set the TTL (time-to-live) option. ! * @param TTL to be set. */ protected abstract void setTimeToLive(int ttl) throws IOException; /** * Get the TTL (time-to-live) option. --- 146,156 ---- protected abstract void receive0(DatagramPacket p) throws IOException; /** * Set the TTL (time-to-live) option. ! * @param ttl TTL to be set. */ protected abstract void setTimeToLive(int ttl) throws IOException; /** * Get the TTL (time-to-live) option.
*** 157,167 **** */ protected abstract int getTimeToLive() throws IOException; /** * Set the TTL (time-to-live) option. ! * @param TTL to be set. */ @Deprecated protected abstract void setTTL(byte ttl) throws IOException; /** --- 157,167 ---- */ protected abstract int getTimeToLive() throws IOException; /** * Set the TTL (time-to-live) option. ! * @param ttl TTL to be set. */ @Deprecated protected abstract void setTTL(byte ttl) throws IOException; /**
*** 170,195 **** @Deprecated protected abstract byte getTTL() throws IOException; /** * Join the multicast group. ! * @param multicast address to join. */ protected void join(InetAddress inetaddr) throws IOException { join(inetaddr, null); } /** * Leave the multicast group. ! * @param multicast address to leave. */ protected void leave(InetAddress inetaddr) throws IOException { leave(inetaddr, null); } /** * Join the multicast group. ! * @param multicast address to join. * @param netIf specifies the local interface to receive multicast * datagram packets * @throws IllegalArgumentException if mcastaddr is null or is a * SocketAddress subclass not supported by this socket * @since 1.4 --- 170,195 ---- @Deprecated protected abstract byte getTTL() throws IOException; /** * Join the multicast group. ! * @param inetaddr multicast address to join. */ protected void join(InetAddress inetaddr) throws IOException { join(inetaddr, null); } /** * Leave the multicast group. ! * @param inetaddr multicast address to leave. */ protected void leave(InetAddress inetaddr) throws IOException { leave(inetaddr, null); } /** * Join the multicast group. ! * @param mcastaddr multicast address to join. * @param netIf specifies the local interface to receive multicast * datagram packets * @throws IllegalArgumentException if mcastaddr is null or is a * SocketAddress subclass not supported by this socket * @since 1.4
*** 205,215 **** protected abstract void join(InetAddress inetaddr, NetworkInterface netIf) throws IOException; /** * Leave the multicast group. ! * @param multicast address to leave. * @param netIf specified the local interface to leave the group at * @throws IllegalArgumentException if mcastaddr is null or is a * SocketAddress subclass not supported by this socket * @since 1.4 */ --- 205,215 ---- protected abstract void join(InetAddress inetaddr, NetworkInterface netIf) throws IOException; /** * Leave the multicast group. ! * @param mcastaddr multicast address to leave. * @param netIf specified the local interface to leave the group at * @throws IllegalArgumentException if mcastaddr is null or is a * SocketAddress subclass not supported by this socket * @since 1.4 */