Uses of Class
net.sf.freecol.common.networking.Connection

Packages that use Connection
net.sf.freecol.client.control Contains the classes responsible for the control of the game. 
net.sf.freecol.client.networking Contains the client networking classes. 
net.sf.freecol.common.networking Contains the common networking classes. 
net.sf.freecol.metaserver This package contains an implementation of a meta server. 
net.sf.freecol.server The main package of the server package tree. 
net.sf.freecol.server.ai The main package of the ai package tree. 
net.sf.freecol.server.ai.mission Contains the missions an AIUnit can be assigned to. 
net.sf.freecol.server.control Contains the classes responsible for the control of the game. 
net.sf.freecol.server.model Contains model classes with server specific information. 
net.sf.freecol.server.networking Contains the server networking classes. 
 

Uses of Connection in net.sf.freecol.client.control
 

Methods in net.sf.freecol.client.control with parameters of type Connection
 org.w3c.dom.Element PreGameInputHandler.handle(Connection connection, org.w3c.dom.Element element)
          Deals with incoming messages that have just been received.
abstract  org.w3c.dom.Element InputHandler.handle(Connection connection, org.w3c.dom.Element element)
          Deals with incoming messages that have just been received.
 org.w3c.dom.Element InGameInputHandler.handle(Connection connection, org.w3c.dom.Element element)
          Deals with incoming messages that have just been received.
 void PreGameInputHandler.handle(Connection connection, javax.xml.stream.XMLStreamReader in, javax.xml.stream.XMLStreamWriter out)
          Handles the main element of an XML message.
 org.w3c.dom.Element InGameInputHandler.multiple(Connection connection, org.w3c.dom.Element element)
          Handle all the children of this element.
 

Uses of Connection in net.sf.freecol.client.networking
 

Methods in net.sf.freecol.client.networking that return Connection
 Connection Client.getConnection()
          Gets the Connection this Client uses when communicating with the server.
 

Uses of Connection in net.sf.freecol.common.networking
 

Methods in net.sf.freecol.common.networking with parameters of type Connection
 org.w3c.dom.Element MessageHandler.handle(Connection connection, org.w3c.dom.Element element)
          Handles the main element of an XML message.
 void StreamedMessageHandler.handle(Connection connection, javax.xml.stream.XMLStreamReader in, javax.xml.stream.XMLStreamWriter out)
          Handles the main element of an XML message.
 org.w3c.dom.Element UpdateCurrentStopMessage.handle(FreeColServer server, Connection connection)
          Handle a "updateCurrentStop"-message.
 org.w3c.dom.Element SpySettlementMessage.handle(FreeColServer server, Connection connection)
          Handle a "spySettlement"-message.
 org.w3c.dom.Element SetDestinationMessage.handle(FreeColServer server, Connection connection)
          Handle a "setDestination"-message.
 org.w3c.dom.Element DiplomacyMessage.handle(FreeColServer server, Connection connection)
          Handle a "diplomacy"-message.
 org.w3c.dom.Element DebugForeignColonyMessage.handle(FreeColServer server, Connection connection)
          Handle a "spySettlement"-message.
 org.w3c.dom.Element ChatMessage.handle(FreeColServer server, Connection connection)
          Handle a "chat"-message.
 org.w3c.dom.Element SellPropositionMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "sellProposition"-message.
 org.w3c.dom.Element SellMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "sell"-message.
 org.w3c.dom.Element RenameMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "rename"-message.
 org.w3c.dom.Element JoinColonyMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "joinColony"-message.
 org.w3c.dom.Element GoodsForSaleMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "goodsForSale"-message.
 org.w3c.dom.Element GiveIndependenceMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "giveIndependence"-message.
 org.w3c.dom.Element GetTransactionMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "getTransaction"-message.
 org.w3c.dom.Element EmigrateUnitMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "emigrateUnit"-message.
 org.w3c.dom.Element DisembarkMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "disembark"-message.
 org.w3c.dom.Element DeliverGiftMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "deliverGift"-message.
 org.w3c.dom.Element DeclareIndependenceMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "declareIndependence"-message.
 org.w3c.dom.Element CloseTransactionMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "closeTransaction"-message.
 org.w3c.dom.Element ClaimLandMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "claimLand"-message.
 org.w3c.dom.Element CashInTreasureTrainMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "cashInTreasureTrain"-message.
 org.w3c.dom.Element BuyPropositionMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "buyProposition"-message.
 org.w3c.dom.Element BuyMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "buy"-message.
 org.w3c.dom.Element BuildColonyMessage.handle(FreeColServer server, Player player, Connection connection)
          Handle a "buildColony"-message.
 

Uses of Connection in net.sf.freecol.metaserver
 

Methods in net.sf.freecol.metaserver that return Connection
 Connection MetaServer.getConnection(java.net.Socket socket)
          Gets a Connection identified by a Socket.
 

Methods in net.sf.freecol.metaserver that return types with arguments of type Connection
 java.util.Iterator<Connection> MetaServer.getConnectionIterator()
          Gets an iterator of every connection to this server.
 

Methods in net.sf.freecol.metaserver with parameters of type Connection
 org.w3c.dom.Element NetworkHandler.handle(Connection connection, org.w3c.dom.Element element)
          Handles a network message.
 void MetaServer.removeConnection(Connection connection)
          Removes the given connection.
 

Uses of Connection in net.sf.freecol.server
 

Methods in net.sf.freecol.server with parameters of type Connection
 ServerPlayer FreeColServer.getPlayer(Connection connection)
          Gets a Player specified by a connection.
 

Uses of Connection in net.sf.freecol.server.ai
 

Methods in net.sf.freecol.server.ai that return Connection
 Connection NewAIPlayer.getConnection()
          Deprecated. Gets the connection to the server.
 Connection AIPlayer.getConnection()
          Gets the connection to the server.
 

Methods in net.sf.freecol.server.ai with parameters of type Connection
 void AIUnit.doMission(Connection connection)
          Performs the mission this unit has been assigned.
 org.w3c.dom.Element AIInGameInputHandler.handle(Connection connection, org.w3c.dom.Element element)
          Deals with incoming messages that have just been received.
 void AIInGameInputHandler.handle(Connection connection, javax.xml.stream.XMLStreamReader in, javax.xml.stream.XMLStreamWriter out)
          Handles the main element of an XML message.
 org.w3c.dom.Element AIInGameInputHandler.multiple(Connection connection, org.w3c.dom.Element element)
          Handle all the children of this element.
 void AIColony.rearrangeWorkers(Connection connection)
          Rearranges the workers within this colony.
 void NewAIPlayer.setDebuggingConnection(Connection debuggingConnection)
          Deprecated. Sets the Connection to be used while communicating with the server.
 void AIPlayer.setDebuggingConnection(Connection debuggingConnection)
          Sets the Connection to be used while communicating with the server.
 

Uses of Connection in net.sf.freecol.server.ai.mission
 

Methods in net.sf.freecol.server.ai.mission with parameters of type Connection
 void Mission.attack(Connection connection, Unit unit, Map.Direction direction)
           
 boolean Mission.buyGoods(Connection connection, Unit carrier, GoodsType goodsType, int amount)
           
 AIGoods TransportMission.buyGoodsInEurope(Connection connection, GoodsType type, int amount, Location destination)
          Buys the given cargo.
 void WorkInsideColonyMission.doMission(Connection connection)
          Performs this mission.
 void WishRealizationMission.doMission(Connection connection)
          Performs this mission.
 void UnitWanderMission.doMission(Connection connection)
          Performs the mission.
 void UnitWanderHostileMission.doMission(Connection connection)
          Performs the mission.
 void UnitSeekAndDestroyMission.doMission(Connection connection)
          Performs the mission.
 void TransportMission.doMission(Connection connection)
          Performs the mission.
 void ScoutingMission.doMission(Connection connection)
          Performs this mission.
 void PrivateerMission.doMission(Connection connection)
          Performs the mission.
 void PioneeringMission.doMission(Connection connection)
          Performs this mission.
abstract  void Mission.doMission(Connection connection)
          Performs the mission.
 void IndianDemandMission.doMission(Connection connection)
          Performs the mission.
 void IndianBringGiftMission.doMission(Connection connection)
          Performs the mission.
 void IdleAtColonyMission.doMission(Connection connection)
          Performs the mission.
 void DefendSettlementMission.doMission(Connection connection)
          Performs this mission.
 void CashInTreasureTrainMission.doMission(Connection connection)
          Performs this mission.
 void BuildColonyMission.doMission(Connection connection)
          Performs this mission.
 

Uses of Connection in net.sf.freecol.server.control
 

Methods in net.sf.freecol.server.control with parameters of type Connection
 Building ServerModelController.createBuilding(java.lang.String taskID, Colony colony, BuildingType type, boolean secure, Connection connection)
          Creates a new building.
 Unit ServerModelController.createUnit(java.lang.String taskID, Location location, Player owner, UnitType type, boolean secure, Connection connection)
          Creates a new unit.
 org.w3c.dom.Element UserConnectionHandler.handle(Connection connection, org.w3c.dom.Element element)
          Handles a network message.
 org.w3c.dom.Element InputHandler.handle(Connection connection, org.w3c.dom.Element element)
          Deals with incoming messages that have just been received.
 void UserConnectionHandler.handle(Connection connection, javax.xml.stream.XMLStreamReader in, javax.xml.stream.XMLStreamWriter out)
          Handles the main element of an XML message.
 

Uses of Connection in net.sf.freecol.server.model
 

Methods in net.sf.freecol.server.model that return Connection
 Connection ServerPlayer.getConnection()
          Gets the connection of this player.
 

Methods in net.sf.freecol.server.model with parameters of type Connection
 void ServerPlayer.setConnection(Connection connection)
          Sets the connection of this player.
 

Constructors in net.sf.freecol.server.model with parameters of type Connection
ServerPlayer(Game game, java.lang.String name, boolean admin, boolean ai, java.net.Socket socket, Connection connection, Nation nation)
          Creates a new ServerPlayer.
ServerPlayer(Game game, java.lang.String name, boolean admin, java.net.Socket socket, Connection connection)
          Creates a new ServerPlayer.
 

Uses of Connection in net.sf.freecol.server.networking
 

Subclasses of Connection in net.sf.freecol.server.networking
 class DummyConnection
          A dummy connection, used for AI players.
 

Methods in net.sf.freecol.server.networking that return Connection
 Connection Server.getConnection(java.net.Socket socket)
          Gets a Connection identified by a Socket.
 

Methods in net.sf.freecol.server.networking that return types with arguments of type Connection
 java.util.Iterator<Connection> Server.getConnectionIterator()
          Gets an iterator of every connection to this server.
 

Methods in net.sf.freecol.server.networking with parameters of type Connection
 void Server.addConnection(Connection connection)
          Adds a Connection into the hashmap.
 void Server.addDummyConnection(Connection connection)
          Adds a (usually Dummy)Connection into the hashmap.
 void Server.removeConnection(Connection connection)
          Removes the given connection.
 void Server.sendToAll(org.w3c.dom.Element element, Connection exceptConnection)
          Sends a network message to all connections except exceptConnection (if the argument is non-null).