2016-09-25 17:23:39 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-01 17:32:39 -08:00
|
|
|
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
|
2016-09-25 17:23:39 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
static inline std::string SocketStrerror() {
|
|
|
|
|
return SocketStrerror(SocketErrno());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace wpi
|
|
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
#endif // WPIUTIL_WPI_SOCKETERROR_H_
|