9 years, 4 months ago.

How to use bind at socket origin local side ?

I'm implementing a tiny FTP server, it need data connection that specified origin port# . But I cant use bind() with TCPSocketConnection object. How resolve it ? ( I'd tried quick hack that cut&paste insert the bind func. from TCPSocketServer to TCPSocketConnection class of lib but in vain....;p)

Question relating to:

Self Solved. member function bind() adding that shares init_socket() with connect(), if it not initialized, do it.

posted by hiro . 23 Jul 2015
Be the first to answer this question.