예제 #1
0
파일: Uv.cs 프로젝트: yellowhuang/corefxlab
        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
파일: Uv.cs 프로젝트: yellowhuang/corefxlab
 public void shutdown(UvShutdownReq req, UvStreamHandle handle, uv_shutdown_cb cb)
 {
     req.Validate();
     handle.Validate();
     ThrowIfErrored(_uv_shutdown(req, handle, cb));
 }
예제 #3
0
파일: Uv.cs 프로젝트: yellowhuang/corefxlab
 unsafe public void write2(UvRequest req, UvStreamHandle handle, Uv.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));
 }
예제 #4
0
파일: Uv.cs 프로젝트: yellowhuang/corefxlab
 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
파일: Uv.cs 프로젝트: yellowhuang/corefxlab
 public void read_stop(UvStreamHandle handle)
 {
     handle.Validate();
     ThrowIfErrored(_uv_read_stop(handle));
 }
예제 #6
0
파일: Uv.cs 프로젝트: yellowhuang/corefxlab
 public void listen(UvStreamHandle handle, int backlog, uv_connection_cb cb)
 {
     handle.Validate();
     ThrowIfErrored(_uv_listen(handle, backlog, cb));
 }
예제 #7
0
파일: Uv.cs 프로젝트: yellowhuang/corefxlab
 public void accept(UvStreamHandle server, UvStreamHandle client)
 {
     server.Validate();
     client.Validate();
     ThrowIfErrored(_uv_accept(server, client));
 }
예제 #8
0
 unsafe public void write2(UvRequest req, UvStreamHandle handle, Uv.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));
 }
예제 #9
0
 public void shutdown(UvShutdownReq req, UvStreamHandle handle, uv_shutdown_cb cb)
 {
     req.Validate();
     handle.Validate();
     ThrowIfErrored(_uv_shutdown(req, handle, cb));
 }
예제 #10
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;
 }
예제 #11
0
 public void read_stop(UvStreamHandle handle)
 {
     handle.Validate();
     ThrowIfErrored(_uv_read_stop(handle));
 }
예제 #12
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));
 }
예제 #13
0
 public void accept(UvStreamHandle server, UvStreamHandle client)
 {
     server.Validate();
     client.Validate();
     ThrowIfErrored(_uv_accept(server, client));
 }
예제 #14
0
 public void listen(UvStreamHandle handle, int backlog, uv_connection_cb cb)
 {
     handle.Validate();
     ThrowIfErrored(_uv_listen(handle, backlog, cb));
 }