home | articles | links | fun | about
Up to: Quick math and science observations

CS461 notes -- complete

create header function

        seq num in socket
        make sure not negative 1.
        assign

/* a structure to contain an internet address

defined in the include file in.h */
struct sockaddr_in {

        short   sin_family; /* should be AF_INET */
        u_short sin_port;
        struct  in_addr sin_addr;
        char    sin_zero[8]; /* not used, must be zero */

};

struct in_addr {

unsigned long s_addr;
};

ISSUES:


why aren't the retransmits working?

we aren't deallocating sockets properly

blocking close? is it necessary? better performance without it?

-make it a non-blocking close

Do the initialization bryan was talking about.