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


#define uv_stream_get_write_queue_size(stream)   stream->write_queue_size


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

Macro Definition Documentation

◆ uv_stream_get_write_queue_size

#define uv_stream_get_write_queue_size (   stream)    stream->write_queue_size

Function Documentation

◆ stream_close()

void stream_close ( Stream stream,
stream_close_cb  on_stream_close,
void data 

◆ stream_close_handle()

void stream_close_handle ( Stream stream)

◆ stream_init()

void stream_init ( Loop loop,
Stream stream,
int  fd,
uv_stream_t *  uvstream 

◆ stream_may_close()

void stream_may_close ( Stream stream)

◆ stream_set_blocking()

int stream_set_blocking ( int  fd,
bool  blocking 

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

0 on success, or libuv error code on failure.