Ejemplo n.º 1
0
 public void GSExternalSend(int socketId, string message)
 {
     GameSparksNativePINVOKE.CSharp_NativeWebSocket_GSExternalSend(swigCPtr, socketId, message);
     if (GameSparksNativePINVOKE.SWIGPendingException.Pending)
     {
         throw GameSparksNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public void GSExternalOpen(int socketId, string url, string gameObjectName)
 {
     GameSparksNativePINVOKE.CSharp_NativeWebSocket_GSExternalOpen(swigCPtr, socketId, url, gameObjectName);
     if (GameSparksNativePINVOKE.SWIGPendingException.Pending)
     {
         throw GameSparksNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 3
0
 public void GSExternalSendBinary(int socketId, byte[] message, int offset, int length)
 {
     GameSparksNativePINVOKE.NativeWebSocket_GSExternalSendBinary(swigCPtr, socketId, message, offset, length);
     if (GameSparksNativePINVOKE.SWIGPendingException.Pending)
     {
         throw GameSparksNativePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 4
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 GameSparksNativePINVOKE.CSharp_delete_NativeWebSocket_Result(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
     }
 }
Ejemplo n.º 5
0
            public string getMessage()
            {
                string ret = GameSparksNativePINVOKE.CSharp_NativeWebSocket_Result_getMessage(swigCPtr);

                return(ret);
            }
Ejemplo n.º 6
0
 public NativeWebSocket.Result.Type getType()
 {
     NativeWebSocket.Result.Type ret = (NativeWebSocket.Result.Type)GameSparksNativePINVOKE.CSharp_NativeWebSocket_Result_getType(swigCPtr);
     return(ret);
 }
Ejemplo n.º 7
0
 public NativeWebSocket.Result GetNextResult()
 {
     global::System.IntPtr  cPtr = GameSparksNativePINVOKE.CSharp_NativeWebSocket_GetNextResult(swigCPtr);
     NativeWebSocket.Result ret  = (cPtr == global::System.IntPtr.Zero) ? null : new NativeWebSocket.Result(cPtr, true);
     return(ret);
 }
Ejemplo n.º 8
0
        public bool Update(float dt)
        {
            bool ret = GameSparksNativePINVOKE.CSharp_NativeWebSocket_Update(swigCPtr, dt);

            return(ret);
        }
Ejemplo n.º 9
0
 public void GSExternalClose(int socketId)
 {
     GameSparksNativePINVOKE.CSharp_NativeWebSocket_GSExternalClose(swigCPtr, socketId);
 }
Ejemplo n.º 10
0
 public NativeWebSocket() : this(GameSparksNativePINVOKE.CSharp_new_NativeWebSocket(), true)
 {
 }