|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.aiyc.server.standalone.longwait.AloneServer
public class AloneServer
服务入口程序
| 嵌套类摘要 | |
|---|---|
class |
AloneServer.ShutdownHandler
|
| 方法摘要 | |
|---|---|
void |
addCallBack(String msg)
|
void |
addNotify(Notifyer er)
添加推送服务 |
void |
addSokect(Client socket)
|
void |
destory()
|
List<Client> |
getClients()
|
int |
getPort()
|
Client |
getSokect(int id)
|
Client |
getSokect(String userNo)
|
Client |
getSokect(String ip,
int port)
|
static AloneServer |
instance()
|
boolean |
isStart()
|
static void |
main(String[] args)
入口程序 |
List<String> |
qetCallBackMsg()
|
void |
removeSokect(Client socket)
|
void |
removeSokect(int id)
|
void |
removeSokect(String ip,
int port)
|
void |
run()
|
void |
sendAll(byte[] b)
发送给全部客户端 |
void |
sendMsg(Socket socket,
byte[] b)
给指定socket发送消息 |
void |
start()
|
void |
startNotify()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public void addNotify(Notifyer er)
Server 中的 addNotify
public void startNotify()
throws NotifyException
Server 中的 startNotifyNotifyExceptionpublic void run()
Runnable 中的 runpublic Client getSokect(int id)
Server 中的 getSokect
public Client getSokect(String ip,
int port)
Server 中的 getSokectpublic void removeSokect(int id)
Server 中的 removeSokect
public void removeSokect(String ip,
int port)
Server 中的 removeSokectpublic List<Client> getClients()
Server 中的 getClientspublic void destory()
Server 中的 destory
public static void main(String[] args)
throws Exception
args -
Exceptionpublic int getPort()
Server 中的 getPortpublic static AloneServer instance()
public void start()
Server 中的 startpublic void addSokect(Client socket)
Server 中的 addSokectpublic void removeSokect(Client socket)
Server 中的 removeSokectpublic boolean isStart()
Server 中的 isStartpublic List<String> qetCallBackMsg()
public void addCallBack(String msg)
public void sendMsg(Socket socket,
byte[] b)
Server 中的 sendMsgpublic void sendAll(byte[] b)
Server 中的 sendAllb - public Client getSokect(String userNo)
Server 中的 getSokect
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||