[comp.protocols.tcp-ip] tcp-ip on AT&T3B2

ceide@bbn.com (Chantal Eide) (08/04/89)

We have a AT&T3B2 522 running Wollongong version 3.0.1 TCP/IP
software.  We are experiencing the following problem: we have an
application which looks like the Programming Example 8 given in
Appendix A of the Enhanced TCP/IP WIN/3B Reference Manual:

    register int file;
    struct sockaddr_in sin;

    vinit((PTR) &sin, sizeof(sin), 0);
    if ((file = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
        {}
    sin.sin_family = AF_INET;
    sin.sin_port = htons(port); /* port is 0 or 2180 I think */
    sin.sin_addr.s_addr = host; /* host is 0 I think */
    if (bind(file, (struct sockaddr *) &sin, sizeof(sin)) < 0)


Our application returns an error on the bind: can't assign requested
address.  Does anyone have a workaround or solution?

Please email responses as I don't read this group.

Thank you,


Chantal Eide
ceide@bbn.com