Crossfire JXClient, Trunk
Functions | Variables
build/windows-installer/unpacked/java-se-8u41-ri/sample/nio/chatserver/README.txt File Reference

Functions

A Simple Chat Server Example the server takes input from a it handles the startup and handles incoming connections on the listening sockets It keeps a list of connected client and provides methods for sending a message to them Client represents a connected it provides methods for reading writing from to the underlying socket It also contains a buffer of input read from the user DataReader provides the interface of the two states a user can be in Waiting for a name (and not receiving any messages while doing so, implemented by NameReader) and waiting for messages from the user(implemented by MessageReader). ClientReader contains the "main loop" for a connected client. NameReader is the initial state for a new client
 
A Simple Chat Server Example the server takes input from a socket ("user") and sends it to all other connected sockets("users") along with the provided name the user was asked for when first connecting. The server was written to demonstrate the asynchronous I/O API in JDK 7. The sample assumes the reader has some familiarity with the subject matter. SETUP
 

Variables

A Simple Chat Server Example the server takes input from a it handles the startup and handles incoming connections on the listening sockets It keeps a list of connected client and provides methods for sending a message to them Client represents a connected it provides methods for reading writing from to the underlying socket It also contains a buffer of input read from the user DataReader provides the interface of the two states a user can be in Waiting for a it sends the user a string and waits for a response before changing the state to MessageReader MessageReader is the main state for a client
 
A Simple Chat Server Example INTRODUCTION
 
A Simple Chat Server Example the server takes input from a it handles the startup and handles incoming connections on the listening sockets It keeps a list of connected client and provides methods for sending a message to them Client represents a connected user
 

Function Documentation

◆ name()

A Simple Chat Server Example the server takes input from a it handles the startup and handles incoming connections on the listening sockets It keeps a list of connected client and provides methods for sending a message to them Client represents a connected it provides methods for reading writing from to the underlying socket It also contains a buffer of input read from the user DataReader provides the interface of the two states a user can be in Waiting for a name ( and not receiving any messages while doing  so,
implemented by  NameReader 
)
new

Referenced by com.realtime.crossfire.jxclient.main.GuiManagerCommandCallback::accountPlayCharacter(), com.realtime.crossfire.jxclient.protocol.MessageType::add(), com.realtime.crossfire.jxclient.skin.skin.Dialogs::addDialog(), com.realtime.crossfire.jxclient.window.GuiManager::addDialog(), com.sun.jmx.examples.scandir.ScanDirConfig::addDirectoryScanner(), com.realtime.crossfire.jxclient.knowledge.KnowledgeManager::addKnowledgeType(), XYZChemModel::addVert(), AppletFrame::AppletFrame(), com.realtime.crossfire.jxclient.window.GuiManager::closeDialog(), com.realtime.crossfire.jxclient.window.GuiManager::closeDialogByName(), com.realtime.crossfire.jxclient.scripts.AbstractScriptProcess::commandSentItem(), com.sun.jmx.examples.scandir.ScanManager::createOtherConfigurationMBean(), com.sun.sample.scriptpad.Main::eval(), com.realtime.crossfire.jxclient.settings.Macros::expandMacros(), com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection::fireAddItemReceived(), com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection::fireCommandSound2Received(), com.realtime.crossfire.jxclient.server.crossfire.AbstractCrossfireServerConnection::firePlayerReceived(), com.sun.jmx.examples.scandir.ScanDirConfig::getBasename(), Demo::getBytes(), CSVProcessor::getColumnNumber(), com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin::getCommandList(), com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin::getDialog(), com.realtime.crossfire.jxclient.gui.gui.Gui::getFirstElement(), com.realtime.crossfire.jxclient.skin.io.FontParser::getFont(), com.realtime.crossfire.jxclient.skin.io.ImageParser::getImage(), com.realtime.crossfire.jxclient.skin.source.JXCSkinClassSource::getInputStream(), com.realtime.crossfire.jxclient.skin.source.JXCSkinDirSource::getInputStream(), com.realtime.crossfire.jxclient.sound.AudioFileLoader::getInputStream(), com.realtime.crossfire.jxclient.gui.label.NewcharStat::getName(), com.sun.jmx.examples.scandir.config.ScanManagerConfig::getName(), com.sun.jmx.examples.scandir.config.ScanManagerConfig::getScan(), com.realtime.crossfire.jxclient.skills.SkillSet::getSkillId(), com.realtime.crossfire.jxclient.character.NewCharacterInformation::getStartingMapInfo(), Demo::getString(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::getUnreferencedElement(), com.realtime.crossfire.jxclient.skin.source.JXCSkinDirSource::getURI(), com.realtime.crossfire.jxclient.skin.source.JXCSkinClassSource::getURI(), com.realtime.crossfire.jxclient.gui.gui.Gui::Gui(), com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox::GUICharOptionsComboBox(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox::GUIClassesComboBox(), com.realtime.crossfire.jxclient.gui.list.GUIItemList< GUIItemSpell >::GUIItemList(), com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox::GUIRacesComboBox(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox::GUIStartingMapsComboBox(), com.sun.jmx.examples.scandir.config.ScanManagerConfig::hashCode(), com.realtime.crossfire.jxclient.skin.skin.JXCSkinCache< Font >::insert(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::load(), com.realtime.crossfire.jxclient.util.ResourceUtils::loadImage(), com.realtime.crossfire.jxclient.skin.skin.Dialogs::lookup(), com.realtime.crossfire.jxclient.skin.skin.JXCSkinCache< Font >::lookup(), com.realtime.crossfire.jxclient.skin.io.GuiElementParser::lookupLabelElement(), com.realtime.crossfire.jxclient.skin.io.GuiElementParser::lookupLabelLogElement(), com.realtime.crossfire.jxclient.skin.skin.JXCSkinCache< Font >::lookupOptional(), com.realtime.crossfire.jxclient.skin.io.GuiElementParser::lookupTextElement(), Xdd::main(), com.sun.jmx.examples.scandir.ScanManager::makeDirectoryScannerName(), com.sun.jmx.examples.scandir.ScanManager::makeMBeanName(), com.sun.jmx.examples.scandir.TestUtils::makeNotificationEmitter(), com.sun.jmx.examples.scandir.ScanManager::makeScanDirConfigName(), com.sun.jmx.examples.scandir.ScanManager::makeSingletonName(), com.realtime.crossfire.jxclient.gui.label.NewcharStat::NewcharStat(), com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory::newCheckBox(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::newGaugeUpdater(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory::newGui(), com.realtime.crossfire.jxclient.skin.factory.TextButtonFactory::newTextButton(), NameReader::onData(), NameReader::onUserNameRead(), com.realtime.crossfire.jxclient.window.GuiManager::openDialog(), com.realtime.crossfire.jxclient.window.GuiManager::openDialogByName(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseButton(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseCharacterList(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseCheckbox(), com.realtime.crossfire.jxclient.skin.io.ParseUtils::parseCheckBoxOption(), com.realtime.crossfire.jxclient.skin.io.ParseUtils::parseColor(), com.realtime.crossfire.jxclient.skin.io.ParseUtils::parseColorName(), com.realtime.crossfire.jxclient.skin.io.ParseUtils::parseColorNull(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseComboBox(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseCommandListAdd(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseCommandText(), com.realtime.crossfire.jxclient.skin.io.CommandParser::parseDialogClose(), com.realtime.crossfire.jxclient.skin.io.CommandParser::parseDialogOpen(), com.realtime.crossfire.jxclient.skin.io.CommandParser::parseDialogToggle(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseDupGauge(), com.realtime.crossfire.jxclient.util.NumberParser::parseEnum(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseFill(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseFont(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseGauge(), com.realtime.crossfire.jxclient.skin.io.GaugeUpdaterParser::parseGaugeUpdater(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseIgnore(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseItem(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelFailure(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelHtml(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelMessage(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelMulti(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelNewchar(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelQuery(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelSoundsCredits(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelStat(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelStat2(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLabelText(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseList(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLogColor(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLogFilter(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLogLabel(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseLogMessage(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseMap(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseMapDirections(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseMetaList(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseMinimap(), com.realtime.crossfire.jxclient.gui.gauge.OrientationParser::parseOrientation(), com.realtime.crossfire.jxclient.skin.io.ParseUtils::parseOrientation(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parsePicture(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parsePictureStat(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseQueryText(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseScrollbar(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseSelectableButton(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseSpinner(), com.realtime.crossfire.jxclient.skin.io.ParseUtils::parseStat(), com.realtime.crossfire.jxclient.stats.StatsParser::parseStat(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseText(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseTextButton(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader::parseTextGauge(), com.realtime.crossfire.jxclient.sound.SoundManager::playMusic(), com.sun.jmx.examples.scandir.ResultLogManager::preRegister(), com.sun.jmx.examples.scandir.ScanDirConfig::preRegister(), com.sun.jmx.examples.scandir.ScanManager::preRegister(), com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection::processAddSpell(), WatchDir::processEvents(), com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection::processItem2(), com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection::processPlayer(), com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection::processSound2(), com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection::processStartingMapReplyinfo(), com.realtime.crossfire.jxclient.util.FilenameUtils::quoteName(), com.realtime.crossfire.jxclient.gui.list.GUICharacterList::rebuildList(), com.sun.jmx.examples.scandir.ScanDirConfig::removeDirectoryScanner(), com.sun.jmx.examples.scandir.config.ScanManagerConfig::removeScan(), com.realtime.crossfire.jxclient.faces.FileCacheFaceQueue.LoadTask::run(), com.realtime.crossfire.jxclient.faces.FileCacheFaceQueue.SaveTask::run(), com.sun.jmx.examples.scandir.config.ScanManagerConfig::ScanManagerConfig(), com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection::sendAccountPlay(), com.sun.jmx.examples.scandir.config.ScanManagerConfig::setName(), com.sun.jmx.examples.scandir.ScanManagerTest::testPreRegister(), com.sun.jmx.examples.scandir.config.ScanManagerConfig::toArray(), com.realtime.crossfire.jxclient.window.GuiManager::toggleDialog(), com.realtime.crossfire.jxclient.gui.gui.Gui::toString(), com.realtime.crossfire.jxclient.protocol.MessageType::toString(), com.sun.jmx.examples.scandir.ScanManager::unregisterResultLogManager(), and XYZChemModel::XYZChemModel().

◆ socket()

A Simple Chat Server Example the server takes input from a socket ( "user"  )

Referenced by com.realtime.crossfire.jxclient.server.crossfire.TestCrossfireServer::getInputStream().

Here is the caller graph for this function:

Variable Documentation

◆ client

A Simple Chat Server Example the server takes input from a it handles the startup and handles incoming connections on the listening sockets It keeps a list of connected client and provides methods for sending a message to them Client represents a connected it provides methods for reading writing from to the underlying socket It also contains a buffer of input read from the user DataReader provides the interface of the two states a user can be in Waiting for a it sends the user a string and waits for a response before changing the state to MessageReader MessageReader is the main state for a client

◆ INTRODUCTION

A Simple Chat Server Example INTRODUCTION
Initial value:
============
This directory contains a very simple chat server

Definition at line 4 of file README.txt.

◆ user

A Simple Chat Server Example the server takes input from a it handles the startup and handles incoming connections on the listening sockets It keeps a list of connected client and provides methods for sending a message to them Client represents a connected user
server
in the editor and run the same with Tools Run menu You will see an alert box with the message world In addition to being a simple script editor scriptpad can be used to connect to a JMX MBean server("Tools->JMX Connect" menu). User can specify JMX hostname and port. After connecting
a
Xmixed mixed mode execution(default) -Xint interpreted mode execution only -Xbootclasspath set search path for bootstrap classes and resources Xbootclasspath a
Definition: Xusage.txt:1