Class PlayerTraffic


  • public abstract class PlayerTraffic
    extends java.lang.Object
    Since:
    CAC v. 2.5.0
    Author:
    Clientastisch
    • Constructor Summary

      Constructors 
      Constructor Description
      PlayerTraffic()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void destory()
      Stop intercepting traffic
      abstract void subscribeIncommingTraffic​(java.util.function.Consumer<java.lang.String> packet)
      Intercept incomming tcp network traffic
      abstract void subscribeOutgoingTraffic​(java.util.function.Consumer<java.lang.String> packet)
      Intercepting outgoing tcp traffic
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayerTraffic

        public PlayerTraffic()
    • Method Detail

      • subscribeIncommingTraffic

        public abstract void subscribeIncommingTraffic​(java.util.function.Consumer<java.lang.String> packet)
        Intercept incomming tcp network traffic
        Parameters:
        packet - tcp packet in string representation
      • subscribeOutgoingTraffic

        public abstract void subscribeOutgoingTraffic​(java.util.function.Consumer<java.lang.String> packet)
        Intercepting outgoing tcp traffic
        Parameters:
        packet - tcp packet in string representation
      • destory

        public abstract void destory()
        Stop intercepting traffic