Functions
stream.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdbool.h>
#include <uv.h>
#include "nvim/log.h"
#include "nvim/rbuffer.h"
#include "nvim/macros.h"
#include "nvim/event/stream.h"

Functions

int stream_set_blocking (int fd, bool blocking)
 
void stream_init (Loop *loop, Stream *stream, int fd, uv_stream_t *uvstream) FUNC_ATTR_NONNULL_ARG(2)
 
void stream_close (Stream *stream, stream_close_cb on_stream_close, void *data) FUNC_ATTR_NONNULL_ARG(1)
 
void stream_may_close (Stream *stream)
 
void stream_close_handle (Stream *stream) FUNC_ATTR_NONNULL_ALL
 

Function Documentation

void stream_close ( Stream stream,
stream_close_cb  on_stream_close,
void *  data 
)
void stream_close_handle ( Stream stream)
void stream_init ( Loop loop,
Stream stream,
int  fd,
uv_stream_t *  uvstream 
)
void stream_may_close ( Stream stream)
int stream_set_blocking ( int  fd,
bool  blocking 
)

Sets the stream associated with fd to "blocking" mode.

Returns
0 on success, or libuv error code on failure.