套接字错误Linux

Error Code描述
EACCESFor Unix domain sockets, which are identified by pathname: Write permission is denied on the socket file, or search permission is denied for one of the directories in the path prefix. (See also path_resolution(2).)
EACCES, EPERMThe user tried to connect to a broadcast address without having the socket broadcast flag enabled or the connection request failed because of a local firewall rule.
EADDRINUSELocal address is already in use.
EAFNOSUPPORTThe passed address didn’t have the correct address family in itssa_family field.
EADDRNOTAVAILNon-existent interface was requested or the requested address was not local.
EALREADYThe socket is non-blocking and a previous connection attempt has not yet been completed.
EBADFThe file descriptor is not a valid index in the descriptor table.
ECONNREFUSEDNo one listening on the remote address.
EFAULTThe socket structure address is outside the user’s address space.
EINPROGRESSThe socket is non-blocking and the connection cannot be completed immediately. It is possible to select(2) or poll(2) for completion by selecting the socket for writing. After select(2) indicates writability, use getsockopt(2) to read the SO_ERRORoption at level SOL_SOCKET to determine whether connect() completed successfully (SO_ERROR is zero) or unsuccessfully (SO_ERROR is one of the usual error codes listed here, explaining the reason for the failure).
EINTRThe system call was interrupted by a signal that was caught.
EISCONNThe socket is already connected.
ENETUNREACHNetwork is unreachable.
ENOTSOCKThe file descriptor is not associated with a socket.
ETIMEDOUTTimeout while attempting connection. The server may be too busy to accept new connections. Note that for IP sockets the timeout may be very long when syncookies are enabled on the server.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值