I am developing a peer to peer file sharing application usig Java and CORBA. I am new to CORBA.
So far I have successfully created a client program that registers a file in the SQL Database via CORBA. The table stores the following information :
- filename
- Share(Basically, it stores the option of sharing or not sharing the file in the network)
- HostName
- PortNumber
I am stuck at this point:
- How do I find the hostname and portnumber of a client when registering the files to SQL?. Because I believe with the hostname and portnumber, I will be able to build a socket connection between two client programs and therefore start sharing file between peers.