- 论坛徽章:
- 0
|
sco 系统中socket端口的数目和内核的哪个参数相关啊?
socket()函数一般会返回下面几种错误:
- The socket() function shall fail if:
- [EAFNOSUPPORT]
- The implementation does not support the specified address family.
- [EMFILE]
- No more file descriptors are available for this process.
- [ENFILE]
- No more file descriptors are available for the system.
- [EPROTONOSUPPORT]
- The protocol is not supported by the address family, or the protocol is not supported by the implementation.
- [EPROTOTYPE]
- The socket type is not supported by the protocol.
- The socket() function may fail if:
- [EACCES]
- The process does not have appropriate privileges.
- [ENOBUFS]
- Insufficient resources were available in the system to perform the operation.
- [ENOMEM]
- Insufficient memory was available to fulfill the request.
复制代码
如果是socket数不够的话应该返回的是ENFILE,因为socket从本质上说也是一种文件。你的程序报的错误应该不属于这种情况。 |
|