WPILibC++
2020.3.2
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_
wpi
WPILib C++ utilities (wpiutil) namespace.
Definition:
EventLoopRunner.h:17
wpiutil
src
main
native
include
wpi
SocketError.h
Generated on Fri Feb 21 2020 08:50:37 for WPILibC++ by
1.8.16