Results 1 to 9 of 9
  1. #1
    nikhil1989k is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    5
    Rep Power
    0

    Default network monitoring

    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

  2. #2
    codesmuggler is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default

    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.

  3. #3
    nikhil1989k is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    5
    Rep Power
    0

    Default

    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............

  4. #4
    codesmuggler is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default

    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.
    Good luck.

  5. #5
    nikhil1989k is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    5
    Rep Power
    0

    Default

    thanks for your kind support now i will read rmi ..................

  6. #6
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    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.

  7. #7
    nikhil1989k is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    5
    Rep Power
    0

    Default

    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.

  8. #8
    codesmuggler is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default

    Solutions:
    - 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.

  9. #9
    nikhil1989k is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    5
    Rep Power
    0

    Default

    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............

Similar Threads

  1. Monitoring the network
    By khajalid in forum Threads and Synchronization
    Replies: 1
    Last Post: 12-21-2008, 10:22 AM
  2. Monitoring the network
    By khajalid in forum New To Java
    Replies: 4
    Last Post: 09-10-2008, 02:55 PM
  3. Monitoring the network
    By khajalid in forum Networking
    Replies: 3
    Last Post: 09-10-2008, 02:47 PM
  4. Monitoring the network
    By khajalid in forum Java Applets
    Replies: 0
    Last Post: 09-09-2008, 06:40 PM
  5. Monitoring the network
    By khajalid in forum Advanced Java
    Replies: 0
    Last Post: 09-09-2008, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •