Functions
socket.c File Reference
#include <assert.h>
#include <stdint.h>
#include <uv.h>
#include "nvim/event/loop.h"
#include "nvim/event/socket.h"
#include "nvim/event/rstream.h"
#include "nvim/event/wstream.h"
#include "nvim/os/os.h"
#include "nvim/ascii.h"
#include "nvim/vim.h"
#include "nvim/strings.h"
#include "nvim/path.h"
#include "nvim/main.h"
#include "nvim/memory.h"
#include "nvim/macros.h"
#include "nvim/charset.h"
#include "nvim/log.h"

Functions

int socket_watcher_init (Loop *loop, SocketWatcher *watcher, const char *endpoint) FUNC_ATTR_NONNULL_ALL
 
int socket_watcher_start (SocketWatcher *watcher, int backlog, socket_cb cb) FUNC_ATTR_NONNULL_ALL
 
int socket_watcher_accept (SocketWatcher *watcher, Stream *stream) FUNC_ATTR_NONNULL_ARG(1) FUNC_ATTR_NONNULL_ARG(2)
 
void socket_watcher_close (SocketWatcher *watcher, socket_close_cb cb) FUNC_ATTR_NONNULL_ARG(1)
 
bool socket_connect (Loop *loop, Stream *stream, bool is_tcp, const char *address, int timeout, const char **error)
 

Function Documentation

bool socket_connect ( Loop loop,
Stream stream,
bool  is_tcp,
const char *  address,
int  timeout,
const char **  error 
)
int socket_watcher_accept ( SocketWatcher watcher,
Stream stream 
)
void socket_watcher_close ( SocketWatcher watcher,
socket_close_cb  cb 
)
int socket_watcher_init ( Loop loop,
SocketWatcher watcher,
const char *  endpoint 
)
int socket_watcher_start ( SocketWatcher watcher,
int  backlog,
socket_cb  cb 
)