WPILibC++  2018.4.1-20180926031727-1206-g8b1274d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
SocketError.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #ifndef WPIUTIL_WPI_SOCKETERROR_H_
9 #define WPIUTIL_WPI_SOCKETERROR_H_
10 
11 #include <string>
12 
13 namespace wpi {
14 
15 int SocketErrno();
16 
17 std::string SocketStrerror(int code);
18 
19 static inline std::string SocketStrerror() {
20  return SocketStrerror(SocketErrno());
21 }
22 
23 } // namespace wpi
24 
25 #endif // WPIUTIL_WPI_SOCKETERROR_H_
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21