Beispiel #1
0
        public new vtkServerSocket NewInstance()
        {
            vtkServerSocket result      = null;
            uint            mteStatus   = 0u;
            uint            mteIndex    = 4294967295u;
            uint            rawRefCount = 0u;
            IntPtr          intPtr      = vtkServerSocket.vtkServerSocket_NewInstance_06(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkServerSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Beispiel #2
0
        public new static vtkServerSocket SafeDownCast(vtkObjectBase o)
        {
            vtkServerSocket vtkServerSocket = null;
            uint            mteStatus       = 0u;
            uint            mteIndex        = 4294967295u;
            uint            rawRefCount     = 0u;
            IntPtr          intPtr          = vtkServerSocket.vtkServerSocket_SafeDownCast_07((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkServerSocket = (vtkServerSocket)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkServerSocket.Register(null);
                }
            }
            return(vtkServerSocket);
        }
 public virtual int WaitForConnection(vtkServerSocket socket, uint msec)
 {
     return(vtkSocketCommunicator.vtkSocketCommunicator_WaitForConnection_40(base.GetCppThis(), (socket == null) ? default(HandleRef) : socket.GetCppThis(), msec));
 }