Home
last modified time | relevance | path

Searched refs:on (Results 1 – 25 of 64) sorted by relevance

123

/libuv/src/unix/
H A Dtcp.c156 int on; in uv__tcp_bind() local
166 on = 1; in uv__tcp_bind()
167 if (setsockopt(tcp->io_watcher.fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) in uv__tcp_bind()
183 &on, in uv__tcp_bind()
184 sizeof on) == -1) { in uv__tcp_bind()
454 int uv__tcp_nodelay(int fd, int on) { in uv__tcp_nodelay() argument
455 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on))) in uv__tcp_nodelay()
478 if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on))) in uv__tcp_keepalive()
481 if (!on) in uv__tcp_keepalive()
589 if (on) in uv_tcp_nodelay()
[all …]
/libuv/docs/src/
H A Dudp.rst107 on error.
206 :returns: 0 on success, or an error code < 0 on failure.
236 :returns: 0 on success, or an error code < 0 on failure.
255 :returns: 0 on success, or an error code < 0 on failure
273 :returns: 0 on success, or an error code < 0 on failure.
288 :returns: 0 on success, or an error code < 0 on failure.
305 :returns: 0 on success, or an error code < 0 on failure.
319 :param on: 1 for on, 0 for off.
321 :returns: 0 on success, or an error code < 0 on failure.
334 :returns: 0 on success, or an error code < 0 on failure.
[all …]
H A Dprocess.rst45 Flags to be set on the flags field of :c:type:`uv_process_options_t`.
61 * only meaningful on Windows systems. On Unix it is silently ignored.
68 * parent's event loop alive unless the parent process calls uv_unref() on
74 * only meaningful on Windows systems. On Unix it is silently ignored.
79 * option is only meaningful on Windows systems. On Unix it is silently
85 * option is only meaningful on Windows systems. On Unix it is silently
193 ``UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS`` flag on :c:enum:`uv_process_flags`.
236 Union containing either the `stream` or `fd` to be passed on to the child
255 it does on Unix.
278 on :c:ref:`signal` for signal support, specially on Windows.
[all …]
H A Dfs_event.rst9 the best backend for the job on each platform.
74 * This flag is currently not implemented yet on any backend.
79 * or kqueue to detect events. This may not work on remote file systems such
80 * as NFS mounts. This flag makes fs_event fall back to calling stat() on a
82 * This flag is currently not implemented yet on any backend.
88 * This flag will override this behaviour on platforms that support it.
115 only on OSX and Windows.
127 by the user. Returns 0 on success or an error code < 0 in case of failure.
136 byte on `UV_ENOBUFS`, and the buffer is null terminated
137 on success.
H A Dpoll.rst11 rely on the event loop to signal it about the socket status changes, like
14 more scalable than what can be achieved with :c:type:`uv_poll_t`, especially on
91 and the detected events set on the `events` field.
106 then call :c:func:`uv_close` on the handle.
109 Calling :c:func:`uv_poll_start` on a handle that is already active is
113 Though `UV_DISCONNECT` can be set, it is unsupported on AIX and as such
114 will not be set on the `events` field in the callback.
123 readable/writable and the callback did not conduct a read/write on
125 * The callback committed a read on the socket, and has not read all the
127 * The callback committed a write on the socket, but it remained
[all …]
H A Dstream.rst37 Callback called when data was read on a stream.
39 `nread` is > 0 if there is data available or < 0 on error. When we've
54 on error.
58 Callback called after data was written on a stream. `status` will be 0 in
134 `server` and `client` must be handles running on the same loop.
145 on Windows but not UNIX, and `UV_EINVAL` on UNIX but not Windows.
156 may be pending on the next input event on that TTY on Windows, and does not
196 `send_handle` must be a TCP, pipe and UDP handle on Unix, or a TCP
197 handle on Windows, which is a server or a connection (listening or
216 Try to send a handle is not supported on Windows,
[all …]
H A Dasync.rst38 :returns: 0 on success, or an error code < 0 on failure.
47 :returns: 0 on success, or an error code < 0 on failure.
50 It's safe to call this function from any thread. The callback will be called on the
H A Dfs.rst13 on the threadpool size.
269 `mode` is currently not implemented on Windows.
392 copy-on-write, a fallback copy mechanism based on
397 copy-on-write, then an error is returned.
517 and `-(req->result)` on other platforms.
581 `UV_FS_O_DIRECT` is supported on Linux, and on Windows via
583 `UV_FS_O_DIRECT` is not supported on macOS.
598 `UV_FS_O_DSYNC` is supported on Windows via
634 `UV_FS_O_NOATIME` is not supported on Windows.
643 `UV_FS_O_NOCTTY` is not supported on Windows.
[all …]
H A Dthreading.rst79 .. versionchanged:: 1.4.1 returns a UV_E* error code on failure
105 Thread affinity setting is not atomic on Windows. Unsupported on macOS.
118 Thread affinity getting is not atomic on Windows. Unsupported on macOS.
124 Gets the CPU number on which the calling thread is running.
127 Currently only implemented on Windows, Linux and FreeBSD.
139 privilege to set specific priorities on some platforms.
174 Functions return 0 on success or an error code < 0 (unless the
187 Functions return 0 on success or an error code < 0 (unless the
202 Functions return 0 on success or an error code < 0 (unless the
214 Functions return 0 on success or an error code < 0 (unless the
[all …]
H A Ddesign.rst36 handle: write requests are used to write data on a handle; or standalone: getaddrinfo requests
37 don't need a handle they run directly on the loop.
49 I/O is performed on non-blocking sockets which are polled using the best mechanism available
50 on the given platform: epoll on Linux, kqueue on OSX and other BSDs, event ports on SunOS and IOCP
51 on Windows. As part of a loop iteration the loop will block waiting for I/O activity on sockets
76 #. Idle handle callbacks are called. Despite the unfortunate name, idle handles are run on every
126 Unlike network I/O, there are no platform-specific file I/O primitives libuv could rely on,
132 libuv currently uses a global thread pool on which all loops can queue work. 3 types of
133 operations are currently run on this pool:
H A Dpipe.rst7 Pipe handles provide an abstraction over streaming files on Unix (including
8 local domain sockets, pipes, and FIFOs) and named pipes on Windows.
28 set, not the listening pipe that uv_accept is called on.
40 change the bytes on the wire). Only a connected pipe that will be
42 that uv_accept is called on.
64 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
80 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
94 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
110 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
119 of the buffer and it's set to the number of bytes written to the buffer on
[all …]
H A Ddll.rst30 Opens a shared library. The filename is in utf-8. Returns 0 on success and
31 -1 on error. Call :c:func:`uv_dlerror` to get the error message.
40 to map to NULL. Returns 0 on success and -1 if the symbol was not found.
H A Dfs_poll.rst9 changed so they can work on file systems where fs event handles can't.
55 all changes on many file systems.
64 by the user. Returns 0 on success or an error code < 0 in case of failure.
73 byte on `UV_ENOBUFS`, and the buffer is null terminated
74 on success.
H A Derrors.rst15 Implementation detail: on Unix error codes are the negated `errno` (or `-errno`), while on
172 illegal operation on a directory
220 machine is not on the network
228 no space left on device
248 socket operation on non-socket
252 operation not supported on socket
383 code: POSIX error codes on Unix (the ones stored in `errno`), and Win32 error
384 codes on Windows (those returned by `GetLastError()` or `WSAGetLastError()`).
H A Dthreadpool.rst40 Callback passed to :c:func:`uv_queue_work` which will be run on the thread
45 Callback passed to :c:func:`uv_queue_work` which will be called on the loop
46 thread after the work on the threadpool has been completed. If the work
68 called on the loop thread.
/libuv/
H A DChangeLog124 * bsd: support pipe2() on *BSD (Andy Pan)
1001 * build: fix error C4146 on MSVC (UMU)
3219 * Now working on version 1.13.1 (cjihrig)
3228 * Now working on version 1.12.1 (cjihrig)
3275 * Now working on version 1.11.1 (cjihrig)
3450 * Now working on version 1.10.3 (cjihrig)
3826 * test: skip emfile on AIX (Imran Iqbal)
4185 * stream: retry write on EPROTOTYPE on OSX (Brian White)
5485 * unix: set close-on-exec flag on received fds (Ben Noordhuis)
5767 limit on the maximum number of file watchers that can be created on OS X.
[all …]
/libuv/test/
H A Dtest-poll-closesocket.c61 unsigned long on; in TEST_IMPL()
69 on = 1; in TEST_IMPL()
70 r = ioctlsocket(sock, FIONBIO, &on); in TEST_IMPL()
H A Dtest-poll-close-doesnt-corrupt-stack.c78 unsigned long on; in TEST_IMPL()
86 on = 1; in TEST_IMPL()
87 r = ioctlsocket(sock, FIONBIO, &on); in TEST_IMPL()
/libuv/.github/workflows/
H A DCI-sample.yml3 on:
22 runs-on: ${{matrix.os}}
28 …# you may like use Ninja on unix-like OS, but for windows, the only easy way is to use Visual Stud…
H A Dsanitizer.yml3 on:
17 runs-on: ubuntu-22.04
26 # [AM]SAN fail on newer kernels due to a bigger PIE slide
70 runs-on: macos-13
105 runs-on: windows-2022
H A DCI-docs.yml3 on:
12 runs-on: ubuntu-latest
/libuv/docs/src/guide/
H A Dintroduction.rst5 a high performance evented I/O library which offers the same API on Windows and Unix.
40 node.js grew in popularity, it was important to make it work on Windows, but
41 libev ran only on Unix. The Windows equivalent of kernel event notification
43 or IOCP depending on the platform, providing users an API based on libev.
50 This book and the code is based on libuv version `v1.42.0`_.
56 the libuv_ project on GitHub.
H A Dfilesystem.rst113 The ``uv_fs_req_cleanup()`` function must always be called on filesystem
208 We start off opening pipes on the files we require. libuv pipes to a file are
211 .. rubric:: uvtee/main.c - read on pipes
237 The read callback ``nread`` parameter is less than 0 on any error. This error
239 function ``uv_close()`` which deals with the handle based on its internal type.
293 Currently this example only works on OSX and Windows.
322 ``UV_FS_EVENT_RECURSIVE`` will start watching subdirectories as well on
328 is the file on which the watch was set.
331 even on those platforms.
347 .. [#fsnotify] inotify on Linux, FSEvents on Darwin, kqueue on BSDs,
[all …]
H A Dnetworking.rst21 TCP is a connection oriented, stream protocol and is therefore based on the
31 3. Call ``uv_listen`` on the handle to have a callback invoked whenever a new
77 Where you do bind/listen/accept on the server, on the client side it's simply
122 will be sent to all interfaces on the subnet. port ``0`` means that the OS
125 First we setup the receiving socket to bind on all interfaces on port 68 (DHCP
126 client) and start a read on it. This will read back responses from any DHCP
128 other system DHCP clients that are running on this computer on the same port.
130 a *broadcast message* on port 67 (DHCP server).
160 The TTL of packets sent on the socket can be changed using ``uv_udp_set_ttl``.
195 perform normal socket operations on the retrieved addresses. Let's connect to
H A Deventloops.rst14 stop running is *on the next iteration*, possibly later. This means that events
17 is called, the loop **won't** block for i/o on this iteration. The semantics of
34 why the loop does not block on I/O. If on the other hand, you called

Completed in 53 milliseconds

123