Package net.rudp

Class ReliableServerSocket.ReliableClientSocket

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    ReliableServerSocket

    public class ReliableServerSocket.ReliableClientSocket
    extends ReliableSocket
    • Constructor Detail

      • ReliableClientSocket

        public ReliableClientSocket​(java.net.DatagramSocket sock,
                                    java.net.SocketAddress endpoint)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • init

        protected void init​(java.net.DatagramSocket sock,
                            ReliableSocketProfile profile)
        Description copied from class: ReliableSocket
        Initializes socket and sets it up for receiving incoming traffic.
        Overrides:
        init in class ReliableSocket
        Parameters:
        sock - the datagram socket.
        profile - the socket profile.
      • receiveSegmentImpl

        protected net.rudp.impl.Segment receiveSegmentImpl()
        Description copied from class: ReliableSocket
        Reads in a segment from the underlying UDP socket.
        Overrides:
        receiveSegmentImpl in class ReliableSocket
        Returns:
        s the segment.
      • segmentReceived

        protected void segmentReceived​(net.rudp.impl.Segment s)