Package rosequartz

Interface Natives.TCPSocket

Enclosing class:
Natives

public static interface Natives.TCPSocket
  • Method Details

    • setPort

      void setPort​(int port)
    • onConnect

      void onConnect​(Runnable action)
    • onMessage

      void onMessage​(Consumer<String> action)
    • onClose

      void onClose​(Consumer<Throwable> action)
    • connect

      void connect​(String address, int port)
    • connectBlocking

      void connectBlocking​(String address, int port)
    • accept

      void accept()
    • acceptBlocking

      void acceptBlocking()
    • send

      void send​(String message)
    • close

      void close()
    • getPort

      int getPort()
    • getAddress

      String getAddress()
    • getConnectedAddress

      String getConnectedAddress()