AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
NetworkConnection.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 NetworkConnection : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal NetworkConnection(global::System.IntPtr cPtr, bool cMemoryOwn) {
18  swigCMemOwn = cMemoryOwn;
19  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20  }
21 
22  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NetworkConnection obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
27  Dispose();
28  }
29 
30  public virtual void Dispose() {
31  lock(this) {
32  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33  if (swigCMemOwn) {
34  swigCMemOwn = false;
36  }
37  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38  }
39  global::System.GC.SuppressFinalize(this);
40  }
41  }
42 
43  public virtual bool IsConnected() {
45  return ret;
46  }
47 
48  public virtual ulong GetConnectionGUID() {
50  return ret;
51  }
52 
53  public virtual void Send(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel, bool releaseMessage) {
54  SharingClientPINVOKE.NetworkConnection_Send__SWIG_0(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability, (int)channel, releaseMessage);
55  }
56 
57  public virtual void Send(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel) {
58  SharingClientPINVOKE.NetworkConnection_Send__SWIG_1(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability, (int)channel);
59  }
60 
61  public virtual void Send(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability) {
62  SharingClientPINVOKE.NetworkConnection_Send__SWIG_2(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability);
63  }
64 
65  public virtual void Send(NetworkOutMessage msg, MessagePriority priority) {
66  SharingClientPINVOKE.NetworkConnection_Send__SWIG_3(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority);
67  }
68 
69  public virtual void Send(NetworkOutMessage msg) {
71  }
72 
73  public virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel, bool releaseMessage) {
74  SharingClientPINVOKE.NetworkConnection_SendTo__SWIG_0(swigCPtr, User.getCPtr(user), (int)deviceRole, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability, (int)channel, releaseMessage);
75  }
76 
77  public virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel) {
78  SharingClientPINVOKE.NetworkConnection_SendTo__SWIG_1(swigCPtr, User.getCPtr(user), (int)deviceRole, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability, (int)channel);
79  }
80 
81  public virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability) {
82  SharingClientPINVOKE.NetworkConnection_SendTo__SWIG_2(swigCPtr, User.getCPtr(user), (int)deviceRole, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability);
83  }
84 
85  public virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority) {
86  SharingClientPINVOKE.NetworkConnection_SendTo__SWIG_3(swigCPtr, User.getCPtr(user), (int)deviceRole, NetworkOutMessage.getCPtr(msg), (int)priority);
87  }
88 
89  public virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg) {
90  SharingClientPINVOKE.NetworkConnection_SendTo__SWIG_4(swigCPtr, User.getCPtr(user), (int)deviceRole, NetworkOutMessage.getCPtr(msg));
91  }
92 
93  public virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel, bool releaseMessage) {
94  SharingClientPINVOKE.NetworkConnection_Broadcast__SWIG_0(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability, (int)channel, releaseMessage);
95  }
96 
97  public virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel) {
98  SharingClientPINVOKE.NetworkConnection_Broadcast__SWIG_1(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability, (int)channel);
99  }
100 
101  public virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability) {
102  SharingClientPINVOKE.NetworkConnection_Broadcast__SWIG_2(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority, (int)reliability);
103  }
104 
105  public virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority) {
106  SharingClientPINVOKE.NetworkConnection_Broadcast__SWIG_3(swigCPtr, NetworkOutMessage.getCPtr(msg), (int)priority);
107  }
108 
109  public virtual void Broadcast(NetworkOutMessage msg) {
111  }
112 
113  public virtual void AddListener(byte messageType, NetworkConnectionListener newListener) {
114  SharingClientPINVOKE.NetworkConnection_AddListener(swigCPtr, messageType, NetworkConnectionListener.getCPtr(newListener));
115  }
116 
117  public virtual void RemoveListener(byte messageType, NetworkConnectionListener oldListener) {
118  SharingClientPINVOKE.NetworkConnection_RemoveListener(swigCPtr, messageType, NetworkConnectionListener.getCPtr(oldListener));
119  }
120 
121  public virtual void AddListenerAsync(byte messageType, NetworkConnectionListener newListener) {
122  SharingClientPINVOKE.NetworkConnection_AddListenerAsync(swigCPtr, messageType, NetworkConnectionListener.getCPtr(newListener));
123  }
124 
125  public virtual void RemoveListenerAsync(byte messageType, NetworkConnectionListener oldListener) {
126  SharingClientPINVOKE.NetworkConnection_RemoveListenerAsync(swigCPtr, messageType, NetworkConnectionListener.getCPtr(oldListener));
127  }
128 
129  public virtual NetworkOutMessage CreateMessage(byte messageType) {
130  global::System.IntPtr cPtr = SharingClientPINVOKE.NetworkConnection_CreateMessage(swigCPtr, messageType);
131  NetworkOutMessage ret = (cPtr == global::System.IntPtr.Zero) ? null : new NetworkOutMessage(cPtr, true);
132  return ret;
133  }
134 
135  public virtual void ReturnMessage(NetworkOutMessage msg) {
137  }
138 
139  public virtual void Disconnect() {
141  }
142 
143  public virtual XString GetRemoteAddress() {
144  global::System.IntPtr cPtr = SharingClientPINVOKE.NetworkConnection_GetRemoteAddress(swigCPtr);
145  XString ret = (cPtr == global::System.IntPtr.Zero) ? null : new XString(cPtr, true);
146  return ret;
147  }
148 
149 }
150 
151 }
static void NetworkConnection_SendTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5, int jarg6, int jarg7, [global::System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.I1)]bool jarg8)
virtual void Send(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability)
virtual void Send(NetworkOutMessage msg)
static ulong NetworkConnection_GetConnectionGUID(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void ReturnMessage(NetworkOutMessage msg)
virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability)
static global::System.IntPtr NetworkConnection_CreateMessage(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
virtual void Send(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel, bool releaseMessage)
virtual void RemoveListener(byte messageType, NetworkConnectionListener oldListener)
virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel)
virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel, bool releaseMessage)
static void NetworkConnection_Send__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4, int jarg5)
static void NetworkConnection_Send__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4)
static void NetworkConnection_Broadcast__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4, int jarg5, [global::System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.I1)]bool jarg6)
static void delete_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1)
static void NetworkConnection_RemoveListenerAsync(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg)
static void NetworkConnection_Broadcast__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
virtual void RemoveListenerAsync(byte messageType, NetworkConnectionListener oldListener)
virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel, bool releaseMessage)
static void NetworkConnection_Send__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4, int jarg5, [global::System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.I1)]bool jarg6)
virtual void Send(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel)
static void NetworkConnection_Broadcast__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
virtual NetworkOutMessage CreateMessage(byte messageType)
static void NetworkConnection_ReturnMessage(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void NetworkConnection_RemoveListener(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
virtual void AddListenerAsync(byte messageType, NetworkConnectionListener newListener)
static void NetworkConnection_SendTo__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void NetworkConnection_AddListenerAsync(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void NetworkConnection_SendTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5, int jarg6, int jarg7)
static void NetworkConnection_SendTo__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5, int jarg6)
virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority)
static global::System.IntPtr NetworkConnection_GetRemoteAddress(global::System.Runtime.InteropServices.HandleRef jarg1)
static void NetworkConnection_AddListener(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void NetworkConnection_Send__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void NetworkConnection_Broadcast__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4)
virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability, MessageChannel channel)
static void NetworkConnection_Broadcast__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4, int jarg5)
static void NetworkConnection_Send__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
static bool NetworkConnection_IsConnected(global::System.Runtime.InteropServices.HandleRef jarg1)
virtual void Broadcast(NetworkOutMessage msg)
virtual void SendTo(User user, ClientRole deviceRole, NetworkOutMessage msg, MessagePriority priority, MessageReliability reliability)
static void NetworkConnection_SendTo__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5)
virtual void Broadcast(NetworkOutMessage msg, MessagePriority priority)
virtual void Send(NetworkOutMessage msg, MessagePriority priority)
virtual void AddListener(byte messageType, NetworkConnectionListener newListener)
static void NetworkConnection_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1)