Esempio n. 1
0
        public new vtkClientSocket NewInstance()
        {
            vtkClientSocket result      = null;
            uint            mteStatus   = 0u;
            uint            mteIndex    = 4294967295u;
            uint            rawRefCount = 0u;
            IntPtr          intPtr      = vtkClientSocket.vtkClientSocket_NewInstance_06(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkClientSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
        public virtual vtkClientSocket GetSocket()
        {
            vtkClientSocket vtkClientSocket = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkSocketCommunicator.vtkSocketCommunicator_GetSocket_17(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkClientSocket = (vtkClientSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkClientSocket.Register(null);
                }
            }
            return(vtkClientSocket);
        }
Esempio n. 3
0
        public vtkClientSocket WaitForConnection(uint msec)
        {
            vtkClientSocket vtkClientSocket = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkServerSocket.vtkServerSocket_WaitForConnection_08(base.GetCppThis(), msec, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkClientSocket = (vtkClientSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkClientSocket.Register(null);
                }
            }
            return(vtkClientSocket);
        }
Esempio n. 4
0
        public new static vtkClientSocket SafeDownCast(vtkObjectBase o)
        {
            vtkClientSocket vtkClientSocket = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkClientSocket.vtkClientSocket_SafeDownCast_07((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkClientSocket = (vtkClientSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkClientSocket.Register(null);
                }
            }
            return(vtkClientSocket);
        }
 public void SetSocket(vtkClientSocket arg0)
 {
     vtkSocketCommunicator.vtkSocketCommunicator_SetSocket_38(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis());
 }