AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DirectPairReceiver.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
11 namespace HoloToolkit.Sharing {
12 
13 public class DirectPairReceiver : PairMaker {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal DirectPairReceiver(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.DirectPairReceiver_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DirectPairReceiver obj) {
21  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22  }
23 
25  Dispose();
26  }
27 
28  public override void Dispose() {
29  lock(this) {
30  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31  if (swigCMemOwn) {
32  swigCMemOwn = false;
34  }
35  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36  }
37  global::System.GC.SuppressFinalize(this);
38  base.Dispose();
39  }
40  }
41 
42  public DirectPairReceiver() : this(SharingClientPINVOKE.new_DirectPairReceiver__SWIG_0(), true) {
43  }
44 
45  public DirectPairReceiver(ushort port) : this(SharingClientPINVOKE.new_DirectPairReceiver__SWIG_1(port), true) {
46  }
47 
48  public override bool IsReceiver() {
50  return ret;
51  }
52 
53  public override int GetAddressCount() {
55  return ret;
56  }
57 
58  public override XString GetAddress(int index) {
59  global::System.IntPtr cPtr = SharingClientPINVOKE.DirectPairReceiver_GetAddress(swigCPtr, index);
60  XString ret = (cPtr == global::System.IntPtr.Zero) ? null : new XString(cPtr, true);
61  return ret;
62  }
63 
64  public override ushort GetPort() {
65  ushort ret = SharingClientPINVOKE.DirectPairReceiver_GetPort(swigCPtr);
66  return ret;
67  }
68 
69  public override void Update() {
71  }
72 
73  public override bool IsReadyToConnect() {
75  return ret;
76  }
77 
78  public void SetIncomingPort(ushort port) {
80  }
81 
82 }
83 
84 }
static global::System.IntPtr DirectPairReceiver_GetAddress(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int DirectPairReceiver_GetAddressCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DirectPairReceiver_SetIncomingPort(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2)
static global::System.IntPtr DirectPairReceiver_SWIGUpcast(global::System.IntPtr jarg1)
override XString GetAddress(int index)
static ushort DirectPairReceiver_GetPort(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DirectPairReceiver_IsReceiver(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DirectPairReceiver_Update(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_DirectPairReceiver(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool DirectPairReceiver_IsReadyToConnect(global::System.Runtime.InteropServices.HandleRef jarg1)