Date: Tue, 8 Dec 1998 14:52:11 -0500 From: "Jim Flowers" <jflowers@ezo.net> To: "Louis A. Mamakos" <louie@TransSys.COM> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Help with TCP listen() function Message-ID: <003a01be22e4$3fbd21c0$abd396ce@ivy.ezo.net>
next in thread | raw e-mail | index | archive | help
Thanks, that did the trick and allowed me to proceed into the meat of the debugging which is now completed. I appreciate your response. Always have a problem knowing when something is "in doubt" and should be freebsd-questions or on a general "technical track" and is more properly queried on "hackers" or a specific "technical track" like "net". I thought I had it right this time. Jim -----Original Message----- From: Louis A. Mamakos <louie@TransSys.COM> To: Jim Flowers <jflowers@ezo.net> Cc: freebsd-hackers@FreeBSD.ORG <freebsd-hackers@FreeBSD.ORG>; freebsd-net@FreeBSD.ORG <freebsd-net@FreeBSD.ORG> Date: Sunday, December 06, 1998 11:17 AM Subject: Re: Help with TCP listen() function > >The problem is that you're not trying to do a TCP "listen" operation; you're >creating a UDP datagram socket, and not a TCP (SOCK_STREAM) type socket. The >listen system call isn't defined to work on datagram sockets because there >are no new connections to be accepted. > >This is probably a freebsd-questions mailing list issue for any follow-up. > >louie > >> >> ------=_NextPart_000_000A_01BE2111.78BC2770 >> Content-Type: text/plain; >> charset="iso-8859-1" >> Content-Transfer-Encoding: quoted-printable >> >> I am trying to port a cable modem (roadrunner) login program written for = >> linux to freebsd 2.2.7 before the Dec 15 deadline. Should have been = >> suspicious when it compiled cleanly without error message. >> >> The program runs up to the point of setting up a TCP socket to request a = >> login sequence using functions: >> >> socket() >> htons() >> bind() >> listen() >> >> and then quits with errnum for "Operation not supported". >> >> The function calls seem to be correctly written and do not return any = >> errors when called (except for listen()). >> >> Is this a correct sequence to establish a passive tcp connection? Is = >> there a better way to do it? Is there a knowledge base for converting = >> linux code to run on FreeBSD? References for the correct way to write = >> code to establish tcp connections? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003a01be22e4$3fbd21c0$abd396ce>