⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sockep.h

📁 dcom机制在vxworks上的实现源代码
💻 H
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -