public Device() { m_nativeInstance = DeviceNative.Create(); IntPtr controllerHandle = DeviceNative.GetController(m_nativeInstance); m_controller = new Controller(controllerHandle); }
public void Dispose() { m_controller = null; if (m_nativeInstance != IntPtr.Zero) { DeviceNative.Destroy(m_nativeInstance); m_nativeInstance = IntPtr.Zero; } }
public bool IsThisDevice(DeviceAddress address) { return(DeviceNative.IsThisDevice(m_nativeInstance, address.NativeInstance)); }
public void RemovePort(IntPtr portHandle) { DeviceNative.RemovePort(m_nativeInstance, portHandle); }
public IntPtr AddPort(string hostname, UInt16 hostPort) { return(DeviceNative.AddPort(m_nativeInstance, hostname, hostPort)); }
public void Loop() { DeviceNative.Loop(m_nativeInstance); }