Esempio n. 1
0
        public static int try_write(UVStreamHandle handle, uv_buf_t[] bufs, int nbufs)
        {
            handle.Validate();
            var count = uv_try_write(handle, bufs, nbufs);

            ThrowIfErrored(count);
            return(count);
        }
Esempio n. 2
0
 public unsafe static void write2(UVWriteRequest req, UVStreamHandle handle, uv_buf_t *bufs, int nbufs, UVStreamHandle sendHandle, uv_write_cb cb)
 {
     req.Validate();
     handle.Validate();
     ThrowIfErrored(uv_write2(req, handle, bufs, nbufs, sendHandle, cb));
 }
Esempio n. 3
0
 public static void read_stop(UVStreamHandle handle)
 {
     handle.Validate();
     ThrowIfErrored(uv_read_stop(handle));
 }
Esempio n. 4
0
 public static void read_start(UVStreamHandle handle, uv_alloc_cb alloc_cb, uv_read_cb read_cb)
 {
     handle.Validate();
     ThrowIfErrored(uv_read_start(handle, alloc_cb, read_cb));
 }
Esempio n. 5
0
 public static void accept(UVStreamHandle server, UVStreamHandle client)
 {
     server.Validate();
     client.Validate();
     ThrowIfErrored(uv_accept(server, client));
 }
Esempio n. 6
0
 public static void listen(UVStreamHandle handle, int backlog, uv_connection_cb cb)
 {
     handle.Validate();
     ThrowIfErrored(uv_listen(handle, backlog, cb));
 }