TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
netutils.h
1 /*
2  * Copyright (c) 2017-present, Facebook, Inc.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #pragma once
9 
10 #include <string>
11 #include <vector>
12 
13 struct sockaddr;
14 
15 namespace cpid {
16 namespace netutils {
17 
18 std::string sockaddrToString(struct ::sockaddr* addr);
19 
20 /// Returns a list of network interface addresses
21 std::vector<std::string> getInterfaceAddresses();
22 
23 } // namespace netutils
24 } // namespace cpid
std::string sockaddrToString(struct::sockaddr *addr)
Definition: netutils.cpp:24
std::vector< std::string > getInterfaceAddresses()
Returns a list of network interface addresses.
Definition: netutils.cpp:51
The TorchCraftAI training library.
Definition: batcher.cpp:15