public class Gateway extends java.lang.Object implements ITransportCallbacks
| Modifier and Type | Class and Description |
|---|---|
static class |
Gateway.GatewayInfo |
| Constructor and Description |
|---|
Gateway(Gateway.GatewayInfo gatewayInfo,
TransportType transportType,
IGatewayCallbacks callbacks) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachAudioBridge(IHandleCallbacks event) |
void |
attachVideoRoom(IHandleCallbacks event) |
void |
ConnectError(java.lang.String error,
int code)
request
|
static Gateway.GatewayInfo |
createDefaultGatewayInfo() |
void |
destroy() |
Handle |
findHandle(long handle_id) |
void |
IncomingRequest(java.lang.String message)
request
|
void |
NotifyEvent(java.lang.String message) |
void |
removeHandle(long handle_id) |
void |
runKeepLive()
用于ping pong 操作
|
void |
sendMessage(Protocol.GatewayType type,
JSONObject message,
long handle_id) |
void |
sendPluginHandleMessage(JSONObject message,
long handle_id) |
boolean |
sessionEnable() |
void |
TransportGone()
gone
|
public Gateway(Gateway.GatewayInfo gatewayInfo, TransportType transportType, IGatewayCallbacks callbacks)
public boolean sessionEnable()
public void destroy()
public Handle findHandle(long handle_id)
public void removeHandle(long handle_id)
public void sendMessage(Protocol.GatewayType type, JSONObject message, long handle_id)
public void sendPluginHandleMessage(JSONObject message,
long handle_id)
public void ConnectError(java.lang.String error,
int code)
ITransportCallbacksConnectError in interface ITransportCallbackspublic void IncomingRequest(java.lang.String message)
ITransportCallbacksIncomingRequest in interface ITransportCallbackspublic void TransportGone()
ITransportCallbacksTransportGone in interface ITransportCallbackspublic void NotifyEvent(java.lang.String message)
NotifyEvent in interface ITransportCallbackspublic void attachAudioBridge(IHandleCallbacks event)
event - public void attachVideoRoom(IHandleCallbacks event)
public void runKeepLive()
public static Gateway.GatewayInfo createDefaultGatewayInfo()