Practical.h 321 B

123456789101112
  1. #pragma once
  2. #include <stdio.h>
  3. #include <sys/socket.h>
  4. #define BUFSIZE 512
  5. void DieWithUserMessage(const char *msg, const char *detail);
  6. void DieWithSystemMessage(const char *msg);
  7. int proto_get_num(const char *name);
  8. void PrintSocketAddress(const struct sockaddr *address, FILE *stream);
  9. int AF_to_PF(const int af);