Date: Tue, 18 Jan 2000 21:37:40 -0500 From: Laurence Berland <stuyman@confusion.net> To: questions@freebsd.org Subject: Finding an open port. Message-ID: <38852374.110B1FCB@confusion.net>
next in thread | raw e-mail | index | archive | help
As some may be aware (from the post that started the rather long volatile variable thread), I am attempting to write an ftp server for a computer science project. I've gotten most of the code done, only the actual data module needs to be written (the Server-DTP for those familiar with the protocol). I'm trying to figure out the best way to find a spare port for PASV connections, and was hoping there's a slightly more elegant solution than calling bind and checking for EAADDRINUSE on errno. I'm expecting my copy of the Stevens book any day now, so hopefully that'll stop my incessant babbling on these lists... Sorry for the inconvenience, thanks for the help. -- Laurence Berland, Stuyvesant HS Debate <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. http://stuy.debate.net icq #7434346 aol imer E1101 The above email Copyright (C) 2000 Laurence Berland All rights reserved 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?38852374.110B1FCB>