logo
首页技术栈工具库讨论
network-socket-options

network-socket-options

The network package provides getSocketOption and setSocketOption functions. These work fine for socket options represented using the int type (namely, all boolean options, and a few quantity options). However, it doesn't work for, say, SO_LINGER, SO_RCVTIMEO, and SO_SNDTIMEO, as these use different, platform-specific representations. This package implements the getters and setters as separate functions. At the moment, it only provides socket options that are available for both Unix and Windows. This package also provides a workaround needed to time out network operations in Windows without leaking resources.
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
标签
根据用户添加的标签生成
暂无标签