netty_unix_socket.h — netty Source File
Architecture documentation for netty_unix_socket.h, a c file in the netty codebase. 2 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR ab04c67a_6048_b528_995a_66f7103f89d2["netty_unix_socket.h"] 505c78e3_5429_a273_f5c4_148e73de1d1f["socket.h"] ab04c67a_6048_b528_995a_66f7103f89d2 --> 505c78e3_5429_a273_f5c4_148e73de1d1f 0c4a58dc_2fdd_e4ad_9234_08a5790f43e3["jni.h"] ab04c67a_6048_b528_995a_66f7103f89d2 --> 0c4a58dc_2fdd_e4ad_9234_08a5790f43e3 b460dd0c_7b1f_bf55_7d35_099b60c3ebbf["netty_unix.c"] b460dd0c_7b1f_bf55_7d35_099b60c3ebbf --> ab04c67a_6048_b528_995a_66f7103f89d2 daa4babc_e657_7631_ad9c_10c8bb120f11["netty_unix_socket.c"] daa4babc_e657_7631_ad9c_10c8bb120f11 --> ab04c67a_6048_b528_995a_66f7103f89d2 style ab04c67a_6048_b528_995a_66f7103f89d2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/*
* Copyright 2015 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.
*/
#ifndef NETTY_UNIX_SOCKET_H_
#define NETTY_UNIX_SOCKET_H_
#include <sys/socket.h>
#include <jni.h>
// External C methods
int netty_unix_socket_nonBlockingSocket(int domain, int type, int protocol);
int netty_unix_socket_initSockaddr(JNIEnv* env, jboolean ipv6, jbyteArray address, jint scopeId, jint jport, const struct sockaddr_storage* addr, socklen_t* addrSize);
jbyteArray netty_unix_socket_createInetSocketAddressArray(JNIEnv* env, const struct sockaddr_storage* addr);
int netty_unix_socket_getOption(JNIEnv* env, jint fd, int level, int optname, void* optval, socklen_t optlen);
int netty_unix_socket_setOption(JNIEnv* env, jint fd, int level, int optname, const void* optval, socklen_t len);
int netty_unix_socket_ipAddressLength(const struct sockaddr_storage* addr);
// These method is sometimes needed if you want to special handle some errno value before throwing an exception.
int netty_unix_socket_getOption0(jint fd, int level, int optname, void* optval, socklen_t optlen);
void netty_unix_socket_getOptionHandleError(JNIEnv* env, int err);
// JNI initialization hooks. Users of this file are responsible for calling these in the JNI_OnLoad and JNI_OnUnload methods.
jint netty_unix_socket_JNI_OnLoad(JNIEnv* env, const char* packagePrefix);
void netty_unix_socket_JNI_OnUnLoad(JNIEnv* env, const char* packagePrefix);
#endif /* NETTY_UNIX_SOCKET_H_ */
Domain
Dependencies
- jni.h
- socket.h
Imported By
Source
Frequently Asked Questions
What does netty_unix_socket.h do?
netty_unix_socket.h is a source file in the netty codebase, written in c. It belongs to the NativeTransport domain.
What does netty_unix_socket.h depend on?
netty_unix_socket.h imports 2 module(s): jni.h, socket.h.
What files import netty_unix_socket.h?
netty_unix_socket.h is imported by 2 file(s): netty_unix.c, netty_unix_socket.c.
Where is netty_unix_socket.h in the architecture?
netty_unix_socket.h is located at transport-native-unix-common/src/main/c/netty_unix_socket.h (domain: NativeTransport, directory: transport-native-unix-common/src/main/c).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free