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
クラス 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.