-
-
Save sloppyjuicy/a117916a9f9f588c5ec2969437394ff3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct uv_ipc_s uv_ipc_t; | |
/* uv_ipc_t is a subclass of uv_stream_t */ | |
struct uv_ipc_s { | |
UV_HANDLE_FIELDS | |
UV_STREAM_FIELDS | |
UV_IPC_PRIVATE_FIELDS | |
}; | |
typedef struct uv_process_options_s { | |
/* ... add the following */ | |
uv_ipc_t* channel; | |
}; | |
/* | |
* Called from child. | |
* | |
* This may be called exactly once per child process. Returns zero on success. | |
*/ | |
int uv_ipc_init(uv_loop_t*, uv_ipc_t*); | |
/* | |
* Called from child. | |
* | |
* This should be called from the read_cb to determine if there is a pending | |
* incoming handle. If so this function returns the type of that pending | |
* incoming handle. If there is no pending incoming then this returns | |
* UV_UNKNOWN. | |
* uv_accept() should be used when there is a pending connection. | |
*/ | |
uv_handle_type uv_ipc_pending(uv_ipc_t*); | |
/* | |
* Called from parent or child. | |
* | |
* sends the given stream to the other process. | |
*/ | |
void uv_ipc_send(uv_ipc_t*, uv_stream_t*); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment