AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DirectPairConnector.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 
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 
16  internal DirectPairConnector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(SharingClientPINVOKE.DirectPairConnector_SWIGUpcast(cPtr), cMemoryOwn) {
17  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18  }
19 
20  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DirectPairConnector 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 DirectPairConnector() : this(SharingClientPINVOKE.new_DirectPairConnector__SWIG_0(), true) {
43  }
44 
45  public DirectPairConnector(XString remoteNameOrIP) : this(SharingClientPINVOKE.new_DirectPairConnector__SWIG_1(XString.getCPtr(remoteNameOrIP)), true) {
46  }
47 
48  public DirectPairConnector(XString remoteNameOrIP, ushort port) : this(SharingClientPINVOKE.new_DirectPairConnector__SWIG_2(XString.getCPtr(remoteNameOrIP), port), true) {
49  }
50 
51  public override bool IsReceiver() {
53  return ret;
54  }
55 
56  public override int GetAddressCount() {
58  return ret;
59  }
60 
61  public override XString GetAddress(int index) {
62  global::System.IntPtr cPtr = SharingClientPINVOKE.DirectPairConnector_GetAddress(swigCPtr, index);
63  XString ret = (cPtr == global::System.IntPtr.Zero) ? null : new XString(cPtr, true);
64  return ret;
65  }
66 
67  public override ushort GetPort() {
69  return ret;
70  }
71 
72  public override void Update() {
74  }
75 
76  public override bool IsReadyToConnect() {
78  return ret;
79  }
80 
81  public void SetRemoteAddress(XString remoteNameOrIP) {
82  SharingClientPINVOKE.DirectPairConnector_SetRemoteAddress(swigCPtr, XString.getCPtr(remoteNameOrIP));
83  }
84 
85  public void SetRemotePort(ushort port) {
87  }
88 
89 }
90 
91 }
static void delete_DirectPairConnector(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DirectPairConnector_Update(global::System.Runtime.InteropServices.HandleRef jarg1)
DirectPairConnector(XString remoteNameOrIP, ushort port)
static global::System.IntPtr DirectPairConnector_SWIGUpcast(global::System.IntPtr jarg1)
static bool DirectPairConnector_IsReadyToConnect(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr DirectPairConnector_GetAddress(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void DirectPairConnector_SetRemoteAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
void SetRemoteAddress(XString remoteNameOrIP)
override XString GetAddress(int index)
static int DirectPairConnector_GetAddressCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static ushort DirectPairConnector_GetPort(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DirectPairConnector_SetRemotePort(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2)
static bool DirectPairConnector_IsReceiver(global::System.Runtime.InteropServices.HandleRef jarg1)