org.asyrinx.brownie.net.socket
クラス SocketServer

java.lang.Object
  拡張org.asyrinx.brownie.net.socket.SocketServer
すべての実装インタフェース:
java.lang.Runnable

public class SocketServer
extends java.lang.Object
implements java.lang.Runnable

作成者:
akima

フィールドの概要
static java.lang.String DEFAULT_TERMINATE_MESSAGE
           
 
コンストラクタの概要
SocketServer(SocketServerListener listener, int port)
           
SocketServer(SocketServerListener listener, int port, java.lang.String terminateMessage)
           
 
メソッドの概要
protected  void connect()
           
protected  void disconnect()
           
 void executeAsThread()
           
 java.io.IOException getOccurred()
           
 boolean isConnected()
           
static void main(java.lang.String[] args)
           
protected  void notifyToClient(java.lang.String line)
           
protected  void receive()
           
protected static void received(java.lang.String line, int count)
           
 void run()
           
protected  void sendTerminateMessage()
           
 void stop()
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_TERMINATE_MESSAGE

public static final java.lang.String DEFAULT_TERMINATE_MESSAGE
関連項目:
定数フィールド値
コンストラクタの詳細

SocketServer

public SocketServer(SocketServerListener listener,
                    int port)

SocketServer

public SocketServer(SocketServerListener listener,
                    int port,
                    java.lang.String terminateMessage)
メソッドの詳細

connect

protected void connect()
                throws java.io.IOException
例外:
java.io.IOException

disconnect

protected void disconnect()
                   throws java.io.IOException
例外:
java.io.IOException

stop

public void stop()

sendTerminateMessage

protected void sendTerminateMessage()

isConnected

public boolean isConnected()

getOccurred

public java.io.IOException getOccurred()
戻り値:
Returns the occurred.

executeAsThread

public void executeAsThread()

run

public void run()
定義:
インタフェース java.lang.Runnable 内の run

receive

protected void receive()
                throws java.io.IOException
例外:
java.io.IOException

notifyToClient

protected void notifyToClient(java.lang.String line)

main

public static void main(java.lang.String[] args)

received

protected static void received(java.lang.String line,
                               int count)


Copyright © 2004 asyrinx organization. All Rights Reserved.