Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:45:32+00:00 2026-06-14T13:45:32+00:00

I am currently modifying Dennis Bush’s UFTP ( http://uftp-multicast.sourceforge.net ) to fit my needs.

  • 0

I am currently modifying Dennis Bush’s UFTP (http://uftp-multicast.sourceforge.net) to fit my needs. What I am currently trying to do is change the address to which the clients send the COMPLETE message. I would like the clients of my modified version of UFTP to multicast the COMPLETE messages instead of unicasting it back to the server, because I need every client in the multicast group to be able to see the COMPLETE messages that are sent, and not just the server.

The author of UFTP has told me that I should modify client_transfer.c, line 359, nb_sendto() function call, 5th argument to a structure containing the private multicast address and port to which I wish to send the COMPLETES. Unfortunately, I am getting the “Address family not supported by protocol” error. The code section was originally like this:

 if (nb_sendto(listener, outpacket, payloadlen, 0,
               (struct sockaddr *)&group_list[listidx].replyaddr,
               sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
        sockerror(group_list[listidx].group_id, group_list[listidx].file_id,
                "Error sending COMPLETE");
    } else {
        log(group_list[listidx].group_id, group_list[listidx].file_id,
                "COMPLETE sent");
    }
    set_timeout(listidx);

    free(buf);
    free(encrypted);

My current code looks like this:

if (nb_sendto(listener, outpacket, payloadlen, 0,
      ////modified line:
              (struct in_addr *)&group_list[listidx].multi.s_addr, //struct in_addr multi;
      ////end of modified line
               sizeof(struct sockaddr_in)) == SOCKET_ERROR) {
        sockerror(group_list[listidx].group_id, group_list[listidx].file_id,
                "Error sending COMPLETE");
    } else {
        log(group_list[listidx].group_id, group_list[listidx].file_id,
                "COMPLETE sent");
    }
    set_timeout(listidx);

    free(buf);
    free(encrypted);

The error is, to me, pretty vague. What exactly does it mean? What could be the possible causes of such an error? Could someone point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:45:33+00:00Added an answer on June 14, 2026 at 1:45 pm

    If you are passing an in_addr where a sockaddr is expected then the problem is simply that when the system call looks at what it thinks is the address family in what it thinks is a sockaddr structure it is really seeing one of the bytes of your multicast address, which is presumably not a valid address family.

    To explain more, a sockaddr_in looks like this:

    struct sockaddr_in {
        sa_family_t sin_family;
        in_port_t sin_port;
        struct in_addr sin_addr;
    }
    

    so the in_addr has a family and port number before it that you are not providing, and instead the first byte of your address is being treated as an address family.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently modifying the stylesheet on http://onverse.wikia.com/wiki/Onverse_Wiki . I'm having difficulties with the orange
I am currently modifying code created in the MS VS IDE, and one change
I'm currently modifying Liquid Framework ( http://github.com/tobi/liquid ) in order to make it support
I'm modifying a PHP script that I have and it is currently outputting a
In the project my team is currently working on, we're modifying a commercial PHP
I'm currently modifying a class that has 9 different constructors. Now overall I believe
I am currently modifying an existing system that generates reports with iText and java.
I'm currently modifying my regex for this: Extracting email addresses in an html block
I am currently modifying a piece of code and I am wondering if the
Currently, I am modifying a css document to make a website compatible in IE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.