Hi.
I am working on a simple message program via IP and TCP protocols. Right now, I ininitialize a listening socket on a default (I set at 21). The user can change the port anytime; however, the actual SOCKADDR_IN that was binded with the listening socket is working on the default port.
Is there a way to modify the port in a SOCKADDR_IN in real-time? Do I have to close the listening sock and bind it with a new SOCKADDR_IN with the new port?
Thanks,
Kuphryn
P.S. From my experience with ftp servers and clients, I believe you have to "reconnect." Thus I believe you have to close whatever socket and start over. I would like to make sure that is true.