com.aiyc.server.standalone.longwait
接口 Server

所有已知实现类:
AloneServer

public interface Server


方法摘要
 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)
           
 boolean isStart()
           
 void removeSokect(Client socket)
           
 void removeSokect(int id)
           
 void removeSokect(String ip, int port)
           
 void sendAll(byte[] b)
           
 void sendMsg(Socket socket, byte[] b)
           
 void start()
           
 void startNotify()
           
 

方法详细信息

start

void start()

destory

void destory()

isStart

boolean isStart()

getClients

List<Client> getClients()

addSokect

void addSokect(Client socket)

removeSokect

void removeSokect(Client socket)

removeSokect

void removeSokect(String ip,
                  int port)

removeSokect

void removeSokect(int id)

getSokect

Client getSokect(int id)

getSokect

Client getSokect(String ip,
                 int port)

getSokect

Client getSokect(String userNo)

sendMsg

void sendMsg(Socket socket,
             byte[] b)

sendAll

void sendAll(byte[] b)

getPort

int getPort()

addNotify

void addNotify(Notifyer er)

startNotify

void startNotify()
                 throws NotifyException
抛出:
NotifyException


Copyright © 2017. All Rights Reserved.