Example #1
0
 static public extern int uv_read_stop(LibuvStreamHandle handle);
Example #2
0
 static public extern int uv_try_write(LibuvStreamHandle handle,uv_buf_t[] bufs,int nbufs);
Example #3
0
 static public extern int uv_accept(LibuvStreamHandle server,LibuvStreamHandle client);
Example #4
0
 static public extern int uv_read_start(LibuvStreamHandle handle,uv_alloc_cb alloc_cb,uv_read_cb read_cb);
Example #5
0
 static public extern int uv_listen(LibuvStreamHandle handle,int backlog,uv_connection_cb cb);
Example #6
0
        static private void ReadCb(IntPtr handle, int status, ref LibuvNative.uv_buf_t buf)
        {
            LibuvStreamHandle streamHandle = FromIntPtr <LibuvStreamHandle>(handle);

            streamHandle._readCallback(streamHandle, status, ref buf);
        }
Example #7
0
        static private void AllocCb(IntPtr handle, int suggestedSize, out LibuvNative.uv_buf_t buf)
        {
            LibuvStreamHandle streamHandle = FromIntPtr <LibuvStreamHandle>(handle);

            streamHandle._allocCallback(streamHandle, suggestedSize, out buf);
        }
Example #8
0
        static private void ConnectionCb(IntPtr handle, int status)
        {
            LibuvStreamHandle streamHandle = FromIntPtr <LibuvStreamHandle>(handle);

            streamHandle._connectionCallback(streamHandle, status);
        }
Example #9
0
 public void Accept(LibuvStreamHandle clientStreamHandle)
 {
     LibuvNative.uv_accept(this /* serverStreamHandle */, clientStreamHandle);
 }