// -*- mode: C++; tab-width: 4; -*- // vi:ts=8 sw=4 noexpandtab autoindent /* * netaddrinfo.h - network address encoding and decoding * * Copyright 2011 Perforce Software. All rights reserved. * * This file is part of Perforce - the FAST SCM System. * * Classes Defined: * * NetAddrInfo - Transform a network address string into a format suitable * for accept/connect */ # include "netportipv6.h" # include "netport.h" // encapsulate a struct addrinfo and its operations class NetAddrInfo { public: NetAddrInfo( const StrPtr &hostname, const StrPtr &portname); ~NetAddrInfo(); int GetHintsFamily() const; void SetHintsFamily(int family); int GetHintsFlags() const; void SetHintsFlags(int flags); bool GetInfo(Error *e); int GetStatus() { return m_status; } const StrPtr Host() { return m_hostname; } const StrPtr Port() { return m_portname; } // fake iterator-like methods const addrinfo * begin() const { return m_serverinfo; } const addrinfo * end() const { return NULL; } private: addrinfo *m_serverinfo; addrinfo m_hints; const StrPtr m_hostname; const StrPtr m_portname; int m_status; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2014-2/net/netaddrinfo.h | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | ||
//guest/perforce_software/p4/2014_2/net/netaddrinfo.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.2/net/netaddrinfo.h | |||||
#1 | 12189 | Matt Attaway | Initial (and much belated) drop of 2014.2 p4 source code |