inetsockaddr.h

来自「the vxworks system kernel souce packeg.t」· C头文件 代码 · 共 54 行

H
54
字号
/* INETSockAddr *//* Copyright (c) 1999 Wind River Systems, Inc. *//*modification history--------------------01d,15jul99,dbs  add equality op01c,15jun99,aim  added hostNameGet01b,05jun99,aim  added clone method01a,11May99,aim  created*/#ifndef __INCINETSockAddr_h#define __INCINETSockAddr_h#include "SockAddr.h"class INETSockAddr : public SockAddr, public sockaddr_in    {  public:    virtual ~INETSockAddr ();    INETSockAddr ();    // INADDR_ANY, and port 0.    INETSockAddr (int portNumber);    INETSockAddr (const char* hostname, int portNumber = 0);    INETSockAddr (unsigned long hostaddr, int portNumber = 0);    virtual int size () const;    virtual int family () const;    virtual int portGet () const;    virtual int hostAddrGet (char* buf, int len) const;    virtual int familyNameGet (char* buf, int len) const;    virtual sockaddr* addr ();    virtual operator sockaddr* ();    virtual int clone (sockaddr*& buf) const;    virtual sockaddr_in* addr_in ();    virtual operator sockaddr_in* ();    virtual const sockaddr_in* addr_in () const;    virtual operator const sockaddr_in* () const;    bool operator == (const INETSockAddr& other) const;      private:    int setAddr (const char* host_name);    };#endif // __INCINETSockAddr_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?