#define BUFLEN 512
 
#define BUFLEN 512
 
#define NPACK 10
 
#define NPACK 10
#define PORT 9930
+
#define PORT 9930
   −
void diep(char *s)
+
void diep(char *s)
{
+
{
  perror(s);
+
perror(s);
  exit(1);
+
exit(1);
}
+
}
   −
int main(void)
  −
{
  −
  struct sockaddr_in si_me, si_other;
  −
  int s, i, slen=sizeof(si_other);
  −
  char buf[BUFLEN];
     Exception encountered, of type "Error"