2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2016-09-25 17:23:39 -07:00
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
#ifndef WPIUTIL_WPI_SOCKETERROR_H_
|
|
|
|
|
#define WPIUTIL_WPI_SOCKETERROR_H_
|
2016-09-25 17:23:39 -07:00
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
namespace wpi {
|
|
|
|
|
|
2017-08-23 01:27:19 -05:00
|
|
|
int SocketErrno();
|
2016-09-25 17:23:39 -07:00
|
|
|
|
|
|
|
|
std::string SocketStrerror(int code);
|
|
|
|
|
|
2021-01-01 10:27:49 -08:00
|
|
|
inline std::string SocketStrerror() {
|
2016-09-25 17:23:39 -07:00
|
|
|
return SocketStrerror(SocketErrno());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace wpi
|
|
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
#endif // WPIUTIL_WPI_SOCKETERROR_H_
|