PageRenderTime 48ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/src/net/error.h

https://github.com/sturd/glBase
C Header | 31 lines | 5 code | 2 blank | 24 comment | 0 complexity | 469d566ab6550cb84fab0974f5da7596 MD5 | raw file
Possible License(s): GPL-2.0
  1. /* error.h - Error output code. Prints socket errors and terminates program.
  2. *
  3. * Copyright (C) 2011 Craig Sturdy
  4. *
  5. * Email: craig <at> sturd <dot> co <dot> uk
  6. * Example Usage: http://sturd.co.uk/
  7. *
  8. * error.h is the legal property of its developer.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * as published by the Free Software Foundation; either version 2
  13. * of the License, or (at your option) any later version.
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21. *
  22. */
  23. #include <iostream>
  24. #include <string>
  25. #include <stdlib.h>
  26. void SocketError( std::string error_msg, int error );
  27. void SocketError( std::string error_msg );