public void Dispose()
 {
     if (m_owned && Handle.Get() != 0)
     {
         NtCore.DestroyInstance(Handle);
         Handle = new NtInst();
     }
 }
 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;
 }
Beispiel #3
0
 private static extern byte *Native_NT_LoadEntries(NtInst inst, byte *filename, byte *prefix, UIntPtr prefix_len, IntPtr warnFunc);
Beispiel #4
0
 private static extern byte *Native_NT_SaveEntries(NtInst inst, byte *filename, byte *prefix, UIntPtr prefix_len);
Beispiel #5
0
 public byte *NT_LoadPersistent(NtInst inst, byte *filename, IntPtr warnFunc)
 {
     return(Native_NT_LoadPersistent(inst, filename, warnFunc));
 }
Beispiel #6
0
 public byte *NT_SavePersistent(NtInst inst, byte *filename)
 {
     return(Native_NT_SavePersistent(inst, filename));
 }
Beispiel #7
0
 private static extern NtLoggerPoller Native_NT_CreateLoggerPoller(NtInst inst);
Beispiel #8
0
 private static extern NtBool Native_NT_IsConnected(NtInst inst);
Beispiel #9
0
 private static extern void Native_NT_StartDSClient(NtInst inst, uint port);
Beispiel #10
0
 public void NT_SetServerTeam(NtInst inst, uint team, uint port)
 {
     Native_NT_SetServerTeam(inst, team, port);
 }
Beispiel #11
0
 private static extern void Native_NT_SetServerTeam(NtInst inst, uint team, uint port);
Beispiel #12
0
 public void NT_SetServerMulti(NtInst inst, UIntPtr count, byte **server_names, uint *ports)
 {
     Native_NT_SetServerMulti(inst, count, server_names, ports);
 }
Beispiel #13
0
 private static extern void Native_NT_SetServerMulti(NtInst inst, UIntPtr count, byte **server_names, uint *ports);
Beispiel #14
0
 public void NT_SetServer(NtInst inst, byte *server_name, uint port)
 {
     Native_NT_SetServer(inst, server_name, port);
 }
Beispiel #15
0
 private static extern void Native_NT_SetServer(NtInst inst, byte *server_name, uint port);
Beispiel #16
0
 private static extern NtConnectionInfo *Native_NT_GetConnections(NtInst inst, UIntPtr *count);
Beispiel #17
0
 public NtConnectionInfo *NT_GetConnections(NtInst inst, UIntPtr *count)
 {
     return(Native_NT_GetConnections(inst, count));
 }
Beispiel #18
0
 public void NT_StartDSClient(NtInst inst, uint port)
 {
     Native_NT_StartDSClient(inst, port);
 }
Beispiel #19
0
 public NtBool NT_IsConnected(NtInst inst)
 {
     return(Native_NT_IsConnected(inst));
 }
Beispiel #20
0
 private static extern void Native_NT_StopDSClient(NtInst inst);
Beispiel #21
0
 private static extern byte *Native_NT_SavePersistent(NtInst inst, byte *filename);
Beispiel #22
0
 public void NT_StopDSClient(NtInst inst)
 {
     Native_NT_StopDSClient(inst);
 }
Beispiel #23
0
 private static extern byte *Native_NT_LoadPersistent(NtInst inst, byte *filename, IntPtr warnFunc);
Beispiel #24
0
 private static extern void Native_NT_SetUpdateRate(NtInst inst, double interval);
Beispiel #25
0
 public NtLoggerPoller NT_CreateLoggerPoller(NtInst inst)
 {
     return(Native_NT_CreateLoggerPoller(inst));
 }
Beispiel #26
0
 public void NT_SetUpdateRate(NtInst inst, double interval)
 {
     Native_NT_SetUpdateRate(inst, interval);
 }
Beispiel #27
0
 public byte *NT_SaveEntries(NtInst inst, byte *filename, byte *prefix, UIntPtr prefix_len)
 {
     return(Native_NT_SaveEntries(inst, filename, prefix, prefix_len));
 }
Beispiel #28
0
 private static extern void Native_NT_Flush(NtInst inst);
Beispiel #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));
 }
Beispiel #30
0
 public void NT_Flush(NtInst inst)
 {
     Native_NT_Flush(inst);
 }