Home / File/ netty_kqueue_native.c — netty Source File

netty_kqueue_native.c — netty Source File

Architecture documentation for netty_kqueue_native.c, a c file in the netty codebase. 23 imports, 0 dependents.

File c Buffer 23 imports

Entity Profile

Dependency Diagram

graph LR
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55["netty_kqueue_native.c"]
  8b805ca0_c81c_78ce_2ee8_b68608e7aaa2["netty_kqueue_bsdsocket.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 8b805ca0_c81c_78ce_2ee8_b68608e7aaa2
  71c93e68_2a73_4cb2_880c_de03b52acd47["netty_kqueue_eventarray.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 71c93e68_2a73_4cb2_880c_de03b52acd47
  b2331aec_03ba_1470_6069_25e689c6bbf6["netty_unix_buffer.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> b2331aec_03ba_1470_6069_25e689c6bbf6
  fe15cf64_2755_0bab_e1c6_27f1c00974e3["netty_unix_errors.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> fe15cf64_2755_0bab_e1c6_27f1c00974e3
  5f09cd7f_2abc_453b_acc1_525ddc146a64["netty_unix_filedescriptor.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 5f09cd7f_2abc_453b_acc1_525ddc146a64
  6856ca94_355a_7202_2c29_bef2cb72a53b["netty_unix_jni.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 6856ca94_355a_7202_2c29_bef2cb72a53b
  fc111a5f_0b57_ff6b_ef88_6c5599fc969f["netty_unix_limits.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> fc111a5f_0b57_ff6b_ef88_6c5599fc969f
  8ec31550_62d3_11e4_5541_6d5381c8f160["netty_unix_socket.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 8ec31550_62d3_11e4_5541_6d5381c8f160
  9cdab914_3acb_8e23_55b9_b6b0ac295acc["netty_unix_util.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 9cdab914_3acb_8e23_55b9_b6b0ac295acc
  86d256ba_1fc0_efa2_0af1_6704199bded4["netty_unix.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 86d256ba_1fc0_efa2_0af1_6704199bded4
  71c52c20_b4aa_1551_58db_42e42fa27aa6["errno.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 71c52c20_b4aa_1551_58db_42e42fa27aa6
  9f8d09f8_2e69_b19b_045b_56aa22aa7b48["netdb.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 9f8d09f8_2e69_b19b_045b_56aa22aa7b48
  929444c6_83a0_72f2_6829_b63c20d5b933["stdio.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> 929444c6_83a0_72f2_6829_b63c20d5b933
  d822c438_bcda_8ebc_05f9_1007c55018be["stdlib.h"]
  39ede3a3_c60e_41de_6b1b_e9a1ce58da55 --> d822c438_bcda_8ebc_05f9_1007c55018be
  style 39ede3a3_c60e_41de_6b1b_e9a1ce58da55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/*
 * Copyright 2016 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
#include <errno.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dlfcn.h>
#include <stddef.h>
#include <time.h>
#include <sys/event.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <sys/time.h>

#include "netty_kqueue_bsdsocket.h"
#include "netty_kqueue_eventarray.h"
#include "netty_unix_buffer.h"
#include "netty_unix_errors.h"
#include "netty_unix_filedescriptor.h"
#include "netty_unix_jni.h"
#include "netty_unix_limits.h"
#include "netty_unix_socket.h"
#include "netty_unix_util.h"
#include "netty_unix.h"

// Add define if NETTY_BUILD_STATIC is defined so it is picked up in netty_jni_util.c
#ifdef NETTY_BUILD_STATIC
#define NETTY_JNI_UTIL_BUILD_STATIC
#endif

#define STATICALLY_CLASSNAME "io/netty/channel/kqueue/KQueueStaticallyReferencedJniMethods"
#define NATIVE_CLASSNAME "io/netty/channel/kqueue/Native"

// Currently only macOS supports EVFILT_SOCK, and it is currently only available in internal APIs.
// To make compiling easier we redefine the values here if they are not present.
#ifdef __APPLE__
#ifndef EVFILT_SOCK
#define EVFILT_SOCK -13
#endif /* EVFILT_SOCK */
#ifndef NOTE_CONNRESET
#define NOTE_CONNRESET 0x00000001
#endif /* NOTE_CONNRESET */
#ifndef NOTE_READCLOSED
#define NOTE_READCLOSED 0x00000002
#endif /* NOTE_READCLOSED */
// ... (410 more lines)

Domain

Dependencies

  • dlfcn.h
  • errno.h
  • event.h
  • netdb.h
  • netty_kqueue_bsdsocket.h
  • netty_kqueue_eventarray.h
  • netty_unix.h
  • netty_unix_buffer.h
  • netty_unix_errors.h
  • netty_unix_filedescriptor.h
  • netty_unix_jni.h
  • netty_unix_limits.h
  • netty_unix_socket.h
  • netty_unix_util.h
  • socket.h
  • stddef.h
  • stdio.h
  • stdlib.h
  • string.h
  • sysctl.h
  • time.h
  • time.h
  • unistd.h

Frequently Asked Questions

What does netty_kqueue_native.c do?
netty_kqueue_native.c is a source file in the netty codebase, written in c. It belongs to the Buffer domain.
What does netty_kqueue_native.c depend on?
netty_kqueue_native.c imports 23 module(s): dlfcn.h, errno.h, event.h, netdb.h, netty_kqueue_bsdsocket.h, netty_kqueue_eventarray.h, netty_unix.h, netty_unix_buffer.h, and 15 more.
Where is netty_kqueue_native.c in the architecture?
netty_kqueue_native.c is located at transport-native-kqueue/src/main/c/netty_kqueue_native.c (domain: Buffer, directory: transport-native-kqueue/src/main/c).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free