Uses of Interface
soc.server.genericServer.StringConnection

Packages that use StringConnection
soc.client   
soc.server   
soc.server.genericServer   
 

Uses of StringConnection in soc.client
 

Fields in soc.client declared as StringConnection
protected  StringConnection SOCPlayerClient.prCli
          for connection to local-practice server SOCPlayerClient.practiceServer
 

Uses of StringConnection in soc.server
 

Fields in soc.server declared as StringConnection
private  StringConnection SOCReplaceRequest.arriving
           
private  StringConnection SOCReplaceRequest.leaving
           
 StringConnection[] SOCGameBoardReset.humanConns
          Human and robot connections; both arrays null at vacant seats.
 StringConnection[] SOCGameBoardReset.robotConns
          Human and robot connections; both arrays null at vacant seats.
 

Methods in soc.server that return StringConnection
 StringConnection SOCReplaceRequest.getArriving()
           
 StringConnection SOCReplaceRequest.getLeaving()
           
 

Methods in soc.server with parameters of type StringConnection
 void SOCServer.connectToChannel(StringConnection c, java.lang.String ch)
          Adds a connection to a chat channel.
 boolean SOCServer.leaveChannel(StringConnection c, java.lang.String ch, boolean channelListLock)
          the connection c leaves the channel ch WARNING: MUST HAVE THE channelList.takeMonitorForChannel(ch) before calling this method
 boolean SOCServer.connectToGame(StringConnection c, java.lang.String ga)
          Adds a connection to a game.
 boolean SOCServer.leaveGame(StringConnection c, java.lang.String gm, boolean gameListLock)
          the connection c leaves the game gm.
private  void SOCServer.forceGamePlayerDiscard(SOCGame cg, int cpn, StringConnection c, java.lang.String plName, int pn)
          Force this player (not current player) to discard, and report resources to all players.
 java.util.Vector SOCServer.leaveAllChannels(StringConnection c)
          the connection c leaves all channels it was in
 java.util.Vector SOCServer.leaveAllGames(StringConnection c)
          the connection c leaves all games it was in
 void SOCServer.messageToPlayer(StringConnection c, SOCMessage mes)
          Send a message to a player and record it
 void SOCServer.messageToGameExcept(java.lang.String gn, StringConnection ex, SOCMessage mes)
          Send a message to all the connections in a game excluding one.
 void SOCServer.leaveConnection(StringConnection c)
          things to do when the connection c leaves
 boolean SOCServer.newConnection1(StringConnection c)
          Things to do when a new connection comes.
protected  void SOCServer.newConnection2(StringConnection c)
          Send welcome messages (server version, and the lists of channels and games (SOCChannels, SOCGames)) when a new connection comes, part 2 - c has been accepted and added to a connection list.
 void SOCServer.processCommand(java.lang.String s, StringConnection c)
          Treat the incoming messages.
 void SOCServer.processDebugCommand(StringConnection debugCli, java.lang.String ga, java.lang.String dcmd)
          Process a debug command, sent by the "debug" client/player.
private  boolean SOCServer.authenticateUser(StringConnection c, java.lang.String userName, java.lang.String password)
          authenticate the user see if the user is in the db, if so then check the password if they're not in the db, but they supplied a password then send a message if they're not in the db, and no password, then ok
private  void SOCServer.handleVERSION(StringConnection c, SOCVersion mes)
          Handle the "version" message, client's version report.
private  boolean SOCServer.setClientVersionOrReject(StringConnection c, int cvers)
          Set client's version, and check against minimum required version SOCServer.CLI_VERSION_MIN.
private  void SOCServer.handleJOIN(StringConnection c, SOCJoin mes)
          Handle the "join a channel" message.
private  void SOCServer.handleLEAVE(StringConnection c, SOCLeave mes)
          Handle the "leave a channel" message
private  void SOCServer.handleIMAROBOT(StringConnection c, SOCImARobot mes)
          Handle the "I'm a robot" message.
private  void SOCServer.handleJOINGAME(StringConnection c, SOCJoinGame mes)
          Handle the "join a game" message: Join or create a game.
private  void SOCServer.handleLEAVEGAME(StringConnection c, SOCLeaveGame mes)
          Handle the "leave game" message
private  void SOCServer.handleSITDOWN(StringConnection c, SOCSitDown mes)
          handle "sit down" message
private  void SOCServer.handlePUTPIECE(StringConnection c, SOCPutPiece mes)
          handle "put piece" message
private  void SOCServer.handleMOVEROBBER(StringConnection c, SOCMoveRobber mes)
          handle "move robber" message
private  void SOCServer.handleSTARTGAME(StringConnection c, SOCStartGame mes)
          handle "start game" message.
private  void SOCServer.readyGameAskRobotsJoin(SOCGame ga, StringConnection[] robotSeats)
          Fill all the unlocked empty seats with robots.
private  void SOCServer.handleROLLDICE(StringConnection c, SOCRollDice mes)
          handle "roll dice" message
private  void SOCServer.handleDISCARD(StringConnection c, SOCDiscard mes)
          handle "discard" message
private  void SOCServer.handleENDTURN(StringConnection c, SOCEndTurn mes)
          handle "end turn" message
private  void SOCServer.handleCHOOSEPLAYER(StringConnection c, SOCChoosePlayer mes)
          handle "choose player" message during robbery
private  void SOCServer.handleMAKEOFFER(StringConnection c, SOCMakeOffer mes)
          handle "make offer" message
private  void SOCServer.handleCLEAROFFER(StringConnection c, SOCClearOffer mes)
          handle "clear offer" message
private  void SOCServer.handleREJECTOFFER(StringConnection c, SOCRejectOffer mes)
          handle "reject offer" message
private  void SOCServer.handleACCEPTOFFER(StringConnection c, SOCAcceptOffer mes)
          handle "accept offer" message
private  void SOCServer.handleBANKTRADE(StringConnection c, SOCBankTrade mes)
          handle "bank trade" message
private  void SOCServer.handleBUILDREQUEST(StringConnection c, SOCBuildRequest mes)
          handle "build request" message
private  void SOCServer.handleCANCELBUILDREQUEST(StringConnection c, SOCCancelBuildRequest mes)
          handle "cancel build request" message
private  void SOCServer.handleBUYCARDREQUEST(StringConnection c, SOCBuyCardRequest mes)
          handle "buy card request" message
private  void SOCServer.handlePLAYDEVCARDREQUEST(StringConnection c, SOCPlayDevCardRequest mes)
          handle "play development card request" message
private  void SOCServer.handleDISCOVERYPICK(StringConnection c, SOCDiscoveryPick mes)
          handle "discovery pick" message (while playing Discovery card)
private  void SOCServer.handleMONOPOLYPICK(StringConnection c, SOCMonopolyPick mes)
          handle "monopoly pick" message
private  void SOCServer.handleCHANGEFACE(StringConnection c, SOCChangeFace mes)
          handle "change face" message
private  void SOCServer.handleSETSEATLOCK(StringConnection c, SOCSetSeatLock mes)
          handle "set seat lock" message
private  void SOCServer.handleRESETBOARDREQUEST(StringConnection c, SOCResetBoardRequest mes)
          handle "reset-board request" message.
private  void SOCServer.handleRESETBOARDVOTE(StringConnection c, SOCResetBoardVote mes)
          handle message of player's vote for a "reset-board" request.
private  void SOCServer.handleCREATEACCOUNT(StringConnection c, SOCCreateAccount mes)
          handle "create account" message
private  void SOCServer.joinGame(SOCGame gameData, StringConnection c, boolean isReset)
          Client has been approved to join game; send the entire state of the game to client, send client join event to other players.
private  void SOCServer.sitDown(SOCGame ga, StringConnection c, int pn, boolean robot, boolean isReset)
          This player is sitting down at the game
private  void SOCServer.reportRsrcGainLoss(java.lang.String gaName, SOCResourceSet rset, boolean isLoss, int mainPlayer, int tradingPlayer, java.lang.StringBuffer message, StringConnection playerConn)
          Report the resources gained/lost by a player, and optionally (for trading) lost/gained by a second player.
protected  boolean SOCServer.checkTurn(StringConnection c, SOCGame ga)
          make sure it's the player's turn
 boolean SOCGameList.isMember(StringConnection conn, java.lang.String gaName)
           
 void SOCGameList.addMember(StringConnection conn, java.lang.String gaName)
          add a member to the game.
 void SOCGameList.removeMember(StringConnection conn, java.lang.String gaName)
          remove member from the game.
static int SOCGameBoardReset.sortPlayerConnections(SOCGame newGame, SOCGame oldGame, java.util.Vector memberConns, StringConnection[] humanConns, StringConnection[] robotConns)
          Grab connection information for this game's humans and robots.
 boolean SOCChannelList.isMember(StringConnection conn, java.lang.String chName)
           
 void SOCChannelList.addMember(StringConnection conn, java.lang.String chName)
          add a member to the chat channel
 void SOCChannelList.removeMember(StringConnection conn, java.lang.String chName)
          remove member from the chat channel
 

Constructors in soc.server with parameters of type StringConnection
SOCReplaceRequest(StringConnection a, StringConnection l, SOCSitDown sm)
          Make a new request
 

Uses of StringConnection in soc.server.genericServer
 

Classes in soc.server.genericServer that implement StringConnection
 class Connection
          A server connection.
 class LocalStringConnection
          Symmetric buffered connection sending strings between two local peers.
 

Fields in soc.server.genericServer declared as StringConnection
 StringConnection Server.Command.con
           
 

Methods in soc.server.genericServer that return StringConnection
 StringConnection StringServerSocket.accept()
          For server to call.
protected  StringConnection Server.getConnection(java.lang.Object connKey)
          Given a key data, return the connected client.
 StringConnection Server.NetStringServerSocket.accept()
           
 StringConnection LocalStringServerSocket.accept()
          For server to call.
 

Methods in soc.server.genericServer with parameters of type StringConnection
 void Server.treat(java.lang.String s, StringConnection c)
          treat a request from the given connection
abstract  void Server.processCommand(java.lang.String str, StringConnection con)
          DOCUMENT ME!
protected  boolean Server.newConnection1(StringConnection c)
          placeholder for doing things when a new connection comes, part 1 - decide whether to accept.
protected  void Server.newConnection2(StringConnection c)
          placeholder for doing things when a new connection comes, part 2 - has been accepted and added to a connection list.
protected  void Server.leaveConnection(StringConnection c)
          placeholder for doing things when a connection is closed.
 void Server.removeConnection(StringConnection c)
          remove a connection from the system; synchronized on list of connections.
protected  void Server.removeConnectionCleanup(StringConnection c)
          do cleanup after a remove connection
 void Server.addConnection(StringConnection c)
          Add a connection to the system.
 void Server.nameConnection(StringConnection c)
          Name a current connection to the system.
 

Constructors in soc.server.genericServer with parameters of type StringConnection
Server.Command(java.lang.String s, StringConnection c)