OpenSDN source code
xmpp_server_address_parser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef VNSW_AGENT_CMN_XMPP_SERVER_ADDRESS_PARSER_HPP
7 #define VNSW_AGENT_CMN_XMPP_SERVER_ADDRESS_PARSER_HPP
8 
9 #include <string>
10 #include <vector>
11 #include <stdint.h>
12 
14 public:
16  void ParseAddress(const std::string &address, std::string *out_ip, uint16_t *out_port) const;
17  void ParseAddresses(const std::vector<std::string> &addresses,
18  std::string out_ips[], uint16_t out_ports[]) const;
19 
20 private:
21  uint16_t default_port;
23 };
24 
25 #endif // VNSW_AGENT_CMN_XMPP_SERVER_ADDRESS_PARSER_HPP
void ParseAddress(const std::string &address, std::string *out_ip, uint16_t *out_port) const
XmppServerAddressParser(uint16_t default_port, uint32_t max_servers_count)
void ParseAddresses(const std::vector< std::string > &addresses, std::string out_ips[], uint16_t out_ports[]) const