Class Client

java.lang.Object
it.quizzy.logiclayer.server.Client
Direct Known Subclasses:
ClientDocente, ClientUtente

public abstract class Client extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Metodo per la chiusura della connessione con il server
    void
    Metodod per il processamento dei messaggi, ad ogni messaggio arrivato, se definita, richiama la callback messaggeCallback
    void
    Metodo per l'invio di un messaggio al server partita

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Client

      public Client()
  • Method Details

    • readMessages

      public void readMessages()
      Metodod per il processamento dei messaggi, ad ogni messaggio arrivato, se definita, richiama la callback messaggeCallback
    • writeMessage

      public void writeMessage(String text) throws IOException
      Metodo per l'invio di un messaggio al server partita
      Parameters:
      text - stringa contenente il messaggio
      Throws:
      IOException
    • close

      public void close() throws IOException
      Metodo per la chiusura della connessione con il server
      Throws:
      IOException