title: Address family not supported by protocol? sendto
body: <p>I'm encountering a strange problem with my program. </p>
  
  <p>I've been using UDP to transfer a file, with the standard sendto and recvfrom.</p>
  
  <p>I have the server and client communicate back and forth many times during the program. </p>
  
  <p>I've just added a new sendto call in the server's code, and it's giving me this error on execution. </p>
  
  <p><code>Address family not supported by protocol.</code> and that's coming from my sendto function. </p>
  
  <p>Here is the code it's executing: </p>
  
  <pre><code>if ((numbytes = sendto(sockfd,sDropped,strlen(sDropped), 0,
           (struct sockaddr *)&amp;their_addr, p-&gt;ai_addrlen)) == -1) {
      perror("talker: sendto");
      exit(1);
      }
  </code></pre>
  
  <p>As i said, this code works about 4 other times earlier in the program, so I'm sure i've got everything hooked up right. </p>
  
  <p>Is anyone familiar with this issue, and could give me some insights on what to check for in my program that might produce this problem?</p>
  
  <p>Thanks.</p>