Skip to content

Commit

Permalink
Expanded Udpcap::Error API with GetErrorCode()
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Mar 4, 2024
1 parent 25b05eb commit d713c53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions udpcap/include/udpcap/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ namespace Udpcap
return message_;
}

inline ErrorCode GetErrorCode() const
{
return error_code_;
}

//////////////////////////////////////////
// Operators
//////////////////////////////////////////
Expand Down

0 comments on commit d713c53

Please sign in to comment.