Class MySocket

java.lang.Object
model.logic.host.MySocket
All Implemented Interfaces:
Serializable

public class MySocket extends Object implements Serializable
See Also:
  • Constructor Details

    • MySocket

      public MySocket(Socket playerSocket)
      The MySocket function is a constructor that takes in a Socket object and assigns it to the playerSocket variable.
      Parameters:
      playerSocket - playerSocket Create a socket for the player
  • Method Details

    • getPlayerSocket

      public Socket getPlayerSocket()
      The getPlayerSocket function returns the playerSocket variable.
      Returns:
      The player socket variable