Class AbstractNetworkProtocolRequestEvent

    • Constructor Detail

      • AbstractNetworkProtocolRequestEvent

        public AbstractNetworkProtocolRequestEvent​(java.lang.String origin,
                                                   int srcPort,
                                                   int dstPort,
                                                   java.lang.String srcIP,
                                                   java.lang.String dstIP)
    • Method Detail

      • getSourcePort

        public int getSourcePort()
        Get the socket-level source port; the port that the caller used to send data.
        Specified by:
        getSourcePort in interface NetworkProtocolRequestEvent
        Returns:
        The source port for this network request
      • getDestinationPort

        public int getDestinationPort()
        Get the socket-level destination port; the port that the receiving end is using to retrieve data;.
        Specified by:
        getDestinationPort in interface NetworkProtocolRequestEvent
        Returns:
        The destination port for this network request.