Ejemplo n.º 1
0
 public void Dispose()
 {
     if (m_owned && Handle.Get() != 0)
     {
         NtCore.DestroyInstance(Handle);
         Handle = new NtInst();
     }
 }
Ejemplo n.º 2
0
 private NetworkTableInstance(NtInst handle)
 {
     m_entryListenerToken      = new Lazy <CancellationTokenSource>(CreateEntryListenerThread);
     m_connectionListenerToken = new Lazy <CancellationTokenSource>(CreateConnectionListenerThread);
     m_rpcListenerToken        = new Lazy <CancellationTokenSource>(CreateRpcListenerThread);
     m_loggerListenerToken     = new Lazy <CancellationTokenSource>(CreateLoggerThread);
     m_owned = false;
     Handle  = handle;
 }
Ejemplo n.º 3
0
 private static extern byte *Native_NT_LoadEntries(NtInst inst, byte *filename, byte *prefix, UIntPtr prefix_len, IntPtr warnFunc);
Ejemplo n.º 4
0
 private static extern byte *Native_NT_SaveEntries(NtInst inst, byte *filename, byte *prefix, UIntPtr prefix_len);
Ejemplo n.º 5
0
 public byte *NT_LoadPersistent(NtInst inst, byte *filename, IntPtr warnFunc)
 {
     return(Native_NT_LoadPersistent(inst, filename, warnFunc));
 }
Ejemplo n.º 6
0
 public byte *NT_SavePersistent(NtInst inst, byte *filename)
 {
     return(Native_NT_SavePersistent(inst, filename));
 }
Ejemplo n.º 7
0
 private static extern NtLoggerPoller Native_NT_CreateLoggerPoller(NtInst inst);
Ejemplo n.º 8
0
 private static extern NtBool Native_NT_IsConnected(NtInst inst);
Ejemplo n.º 9
0
 private static extern void Native_NT_StartDSClient(NtInst inst, uint port);
Ejemplo n.º 10
0
 public void NT_SetServerTeam(NtInst inst, uint team, uint port)
 {
     Native_NT_SetServerTeam(inst, team, port);
 }
Ejemplo n.º 11
0
 private static extern void Native_NT_SetServerTeam(NtInst inst, uint team, uint port);
Ejemplo n.º 12
0
 public void NT_SetServerMulti(NtInst inst, UIntPtr count, byte **server_names, uint *ports)
 {
     Native_NT_SetServerMulti(inst, count, server_names, ports);
 }
Ejemplo n.º 13
0
 private static extern void Native_NT_SetServerMulti(NtInst inst, UIntPtr count, byte **server_names, uint *ports);
Ejemplo n.º 14
0
 public void NT_SetServer(NtInst inst, byte *server_name, uint port)
 {
     Native_NT_SetServer(inst, server_name, port);
 }
Ejemplo n.º 15
0
 private static extern void Native_NT_SetServer(NtInst inst, byte *server_name, uint port);
Ejemplo n.º 16
0
 private static extern NtConnectionInfo *Native_NT_GetConnections(NtInst inst, UIntPtr *count);
Ejemplo n.º 17
0
 public NtConnectionInfo *NT_GetConnections(NtInst inst, UIntPtr *count)
 {
     return(Native_NT_GetConnections(inst, count));
 }
Ejemplo n.º 18
0
 public void NT_StartDSClient(NtInst inst, uint port)
 {
     Native_NT_StartDSClient(inst, port);
 }
Ejemplo n.º 19
0
 public NtBool NT_IsConnected(NtInst inst)
 {
     return(Native_NT_IsConnected(inst));
 }
Ejemplo n.º 20
0
 private static extern void Native_NT_StopDSClient(NtInst inst);
Ejemplo n.º 21
0
 private static extern byte *Native_NT_SavePersistent(NtInst inst, byte *filename);
Ejemplo n.º 22
0
 public void NT_StopDSClient(NtInst inst)
 {
     Native_NT_StopDSClient(inst);
 }
Ejemplo n.º 23
0
 private static extern byte *Native_NT_LoadPersistent(NtInst inst, byte *filename, IntPtr warnFunc);
Ejemplo n.º 24
0
 private static extern void Native_NT_SetUpdateRate(NtInst inst, double interval);
Ejemplo n.º 25
0
 public NtLoggerPoller NT_CreateLoggerPoller(NtInst inst)
 {
     return(Native_NT_CreateLoggerPoller(inst));
 }
Ejemplo n.º 26
0
 public void NT_SetUpdateRate(NtInst inst, double interval)
 {
     Native_NT_SetUpdateRate(inst, interval);
 }
Ejemplo n.º 27
0
 public byte *NT_SaveEntries(NtInst inst, byte *filename, byte *prefix, UIntPtr prefix_len)
 {
     return(Native_NT_SaveEntries(inst, filename, prefix, prefix_len));
 }
Ejemplo n.º 28
0
 private static extern void Native_NT_Flush(NtInst inst);
Ejemplo n.º 29
0
 public byte *NT_LoadEntries(NtInst inst, byte *filename, byte *prefix, UIntPtr prefix_len, IntPtr warnFunc)
 {
     return(Native_NT_LoadEntries(inst, filename, prefix, prefix_len, warnFunc));
 }
Ejemplo n.º 30
0
 public void NT_Flush(NtInst inst)
 {
     Native_NT_Flush(inst);
 }