JVM调用时可以找到Linux插座API
Where Linux socket API can be found when invoked by JVM?
我试图找到用于从JVM读取网络流的Linux套接字API,但是我在以下代码上封锁了,因为我不知道如何继续检查:: recv,我不知道哪个类声明实现它,因为它在其前面没有类名。
int os::recv(int fd, char *buf, int nBytes, int flags) {
INTERRUPTIBLE_RETURN_INT(::recv(fd, buf, nBytes, flags), os::Solaris::clear_interrupted);
}
at file openjdk-7-fcs-src-b147-27_jun_2011openjdkhotspotsrcossolarisvmos_solaris.cpp
我的问题是如何获取:: recv的声明实现以及我们可以在哪里找到linux套接字API来读取JVM调用的网络流。
::recv()
是操作系统提供的系统调用。您无法沿着这条路走。
相关文章:
- 在C++/Linux中设置单调时钟的一些技巧
- Linux的Cpp上的计时器
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- 在Linux中哪里可以找到互斥、未来等的源代码
- 如何在linux终端中同时编译和运行c++代码
- 在Linux for Windows上编译C++代码时出错
- 如何找到锁定Linux futex的C++行
- 在linux上调试巨大的C++项目
- 如何处理linux终端中带有负号(-)的C++中的命令行参数
- c++方法参数只能在linux的发布模式下自行更改
- 在Linux和C++中的Windows上,散列字符串值会产生不同的输出
- 这里在 Linux 中具有"CreatePipe"和"CreateProcessW"功能吗?
- 函数在Windows或Linux上运行时表现不同
- 在Linux下捕获SIGKILL的C++程序
- 在为LINUX创建共享库时,如何避免STL的私有/弱副本
- 使用 cmake 的 Linux 终端上的"Conversion to non-scalar type is requested"错误
- TOS字段从Linux的TCP插座上接收到的数据包获取
- Linux插座文件描述符通常适合哈希
- 来自UDP插座的定期延迟峰值由周期性sendto()/recvFrom()延迟引起的Linux RT抢先系统的C
- JVM调用时可以找到Linux插座API