示例#1
0
        public 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);
        }
示例#2
0
 unsafe public void write2(UvRequest 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));
 }
示例#3
0
 public void read_stop(UvStreamHandle handle)
 {
     handle.Validate();
     ThrowIfErrored(_uv_read_stop(handle));
 }
示例#4
0
 public 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));
 }
示例#5
0
 public void accept(UvStreamHandle server, UvStreamHandle client)
 {
     server.Validate();
     client.Validate();
     ThrowIfErrored(_uv_accept(server, client));
 }
示例#6
0
 public void listen(UvStreamHandle handle, int backlog, uv_connection_cb cb)
 {
     handle.Validate();
     ThrowIfErrored(_uv_listen(handle, backlog, cb));
 }