Interface SocketClient

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    TCPClient

    public interface SocketClient
    extends java.io.Closeable
    An interface for clients that connect to a socket.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void sendMessage​(java.lang.String message)
      Send a message through the Socket Client.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • sendMessage

        void sendMessage​(java.lang.String message)
        Send a message through the Socket Client.
        Parameters:
        message - The message to be sent