Hi! everybody I am new to this forum.can anybody help me i want to develop a project
in which multiple clients can connect to a server and server will be able to monitor clients once they are registered with server.I have a basic knoweldge of networking in java.
with monitoring means what file they are sending to other clients.I want to develop my project using wireless networking so also tell me if i can encrypt the packets sent
Try out Java Remote Method Invocation (RMI) - the basic middleware solution provided in Java. It simplifies communication between server and clients - you don't have to use sockets.
thanks for your attention but i want to know one more thing that ..........
suppose if more than one client is connected to the server is it possible to send some file to other client via a third client i mean to say that.........
if node1, node2, node3 are connected to the server is it possible to send a file from node1 to node3 via node2..................and at the same time server should be aware of this transfer ...
kindly suggest me what should i read to implement this feature in my project............
Everything is possible as long as you can write code down. If you have no experience in distributed systems programming - I think it is too hard task for you.
What you have read:
- some books / articles about distributed systems as whole topic,
- articles about Java distributed mechanism: RMI (simplest one) and ICE (more hard - but can "talk" with other languages such as C++, python too).
If you do so - try to write some simple client-server applications. Google will help you ;)
Then try to do your project.
thanks for your kind support now i will read rmi ..................
Yes, all of what you described is possible in Java. The project you described is roughly ~1500 lines of code (with no additional requirements) and would take a good programmer who is already familiar with this type of thing ~80 hours to design and implement. An expert could do it in ~30 hours. It will take a beginner several hundred hours.
i have read many thing about networking and come to know to that its possible to do as i required but i got stuck at one place ...........
i am running multiple instances of server to service every client .I send some string over the network so that server can know what client need and perform appropriate task.But i am not able to implement one feature that if some client want to send files to other client the client can send the string like "sending file" but how the other client will know that i want to send some file to him..kindly give suggestions.
- simplest solution: other client asks server if there is any message for him every 1 second,
- better solution: client registers callback on server and when server has message for it server can notify it instantaneously.
Thanks code smuggler once again for your quick response..................i have implemented that with the help of thread that has an instance of InputStream from the socket and that thread continiously check if there is any file that is to be received...........
But i have come to halt at one more place that is implementing security feature im my project how can i secure my file transfer because in my project the client can choose more than one path for sending file the client in the mid of the path should not be able to grab the contents of file............