Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }
            if (disposing)
            {
            }

            nng_stream_free(stream);
            stream   = nng_stream.Null;
            disposed = true;
        }
Beispiel #2
0
 public static extern Int32 nng_stream_set_string(nng_stream dialer, string name, string value);
Beispiel #3
0
 public static extern Int32 nng_stream_set_uint64(nng_stream dialer, string name, UInt64 value);
Beispiel #4
0
 public static extern Int32 nng_stream_set_ms(nng_stream dialer, string name, nng_duration value);
Beispiel #5
0
 public static extern Int32 nng_stream_set_int(nng_stream dialer, string name, Int32 value);
Beispiel #6
0
 public static extern Int32 nng_stream_set_bool(nng_stream dialer, string name, bool value);
Beispiel #7
0
 public static extern Int32 nng_stream_get_ptr(nng_stream dialer, string name, out IntPtr data);
Beispiel #8
0
 public static extern void nng_stream_close(nng_stream stream);
Beispiel #9
0
 public static extern Int32 nng_stream_get_ms(nng_stream dialer, string name, out nng_duration data);
Beispiel #10
0
 public static extern Int32 nng_stream_get_int(nng_stream dialer, string name, out Int32 data);
Beispiel #11
0
 public static extern Int32 nng_stream_get_bool(nng_stream dialer, string name, out bool data);
Beispiel #12
0
 public static Int32 nng_stream_set(nng_stream stream, string name, byte[] data)
 {
     return(nng_stream_set(stream, name, data, (UIntPtr)data.Length));
 }
Beispiel #13
0
 public static extern Int32 nng_stream_set(nng_stream stream, string name, byte[] data, UIntPtr size);
Beispiel #14
0
 public static extern void nng_stream_recv(nng_stream stream, nng_aio aio);
Beispiel #15
0
 public static extern void nng_stream_send(nng_stream stream, nng_aio aio);
Beispiel #16
0
 public static extern Int32 nng_stream_set_ptr(nng_stream dialer, string name, IntPtr value);
Beispiel #17
0
 public static extern Int32 nng_stream_get_uint64(nng_stream dialer, string name, out UInt64 data);
Beispiel #18
0
 public static extern void nng_stream_free(nng_stream stream);