How can I bind a StreamSocket to a particular local port? For example, an FTP server wants to use local port 20 as the outgoing port for ACTIVE mode data transfers. Looking at the API it appears that only the ServerSocket class can do a bind?
Would it be possible to add a new method bind()so it can bind the socket to a local port before connect() is called? Without something like this change, I don't see a way to write an FTP server using Poco.