public static void setListenParameter(ListenType type, string key, string value) { #if UNITY_ANDROID && !UNITY_EDITOR androidJavaClass.CallStatic("setListenParameter", type.ToString(), key, value); #else Debug.Log("Mibo.setListenParameter(" + type + "," + key + "," + value + ");"); #endif }
public static IListen CreateListen(ListenType lisType) { switch (lisType) { case ListenType.TCP: return(new TcpListen()); case ListenType.HTTP: return(new HttpListen()); } return(null); }
public void Start(ListenType listenType, string listenString, ConnectionType connectionType, string connectionString) { conInfo = new ConnectionInfo { ConnectionType = connectionType, ConnectionString = connectionString }; listen = Listen.Listen.CreateListen(listenType); listen.Connected += Working; listen.Start(listenString); if (OnNewEvent != null) { if (OnNewEvent != null) { OnNewEvent("Listening started: " + listenString); } } }