sockep.h
来自「the vxworks system kernel souce packeg.t」· C头文件 代码 · 共 80 行
H
80 行
/* SockEP *//* Copyright (c) 1999 Wind River Systems, Inc. *//*modification history--------------------01c,11aug99,aim keepalive no longer the default01b,30jul99,aim add keepAliveSet method01a,10may99,aim created*/#ifndef __INCSockEP_h_#define __INCSockEP_h_#include "ReactorHandle.h"#include "SockAddr.h"#include "iostream"class SockEP : public ReactorHandle { public: virtual ~SockEP (); int optSet ( int level, int option, void* optval, int optlen ) const; // Wrapper around the setsockopt() system call. int optGet ( int level, int option, void* optval, int* optlen ) const; // Wrapper around the getsockopt() system call. int optReuseAddrSet (); int optKeepAliveSet (); int open ( int type, int protocolFamily, int protocol, int reuseAddr, int keepAliveSet = 0 ); // Invokes the <socket> system call int close (void); // Close down the socket. int hostAddrGet (SockAddr& sa) const; int peerAddrGet (SockAddr& sa) const; friend ostream& operator<< (ostream& os, const SockEP&); protected: SockEP (); SockEP (const SockAddr& sa); SockEP ( int type, int protocolFamily = PF_INET, int protocol = 0, int reuseAddr = 0 ); };#endif // __INCSockEP_h
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?