Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11

    actually possible kaayo ni imo idea but i think you might hit some limitations.

    1. First and foremost you need to remember that you can only bind your port once so it will be tricky to test your app.
    2. Start your project on a smaller scale like you can use UDP and ping ONLY your local network. If it responds then include it on your user's list. Ping is quite fast and normally for intranet, you only need to do this for less than 500 computers so it will still be very fast. Just make sure you will put a time out on your ping. Your user's list will be detected incrementally or you can put a code where if you where able to ping a certain address do another call to grab his list and etc.

    So as an example: you will try to set up your broadcast address at 10.0.0.1 at port 9999. When your app runs, it will do ping 10.0.0.1 to 10.0.0.255.
    All those that will respond will be added to your user list including their ip address. When you send a message or even transfer a file, you can use the ip address to connect to that computer and do your normal client - server messaging / file transfer.

    3. If you want to go to a higher level then just increase the number of ip address you will try to ping.

    4. You might also need to implement a daemon that will try to continuously do the pings again every several seconds/minute to refresh your list.

    With this, I think you should be able to create a serverless messenger.


    It will be easier to do it with a server though.

  2. #12
    Quote Originally Posted by dekarcane View Post
    actually possible kaayo ni imo idea but i think you might hit some limitations.

    1. First and foremost you need to remember that you can only bind your port once so it will be tricky to test your app.
    2. Start your project on a smaller scale like you can use UDP and ping ONLY your local network. If it responds then include it on your user's list. Ping is quite fast and normally for intranet, you only need to do this for less than 500 computers so it will still be very fast. Just make sure you will put a time out on your ping. Your user's list will be detected incrementally or you can put a code where if you where able to ping a certain address do another call to grab his list and etc.

    So as an example: you will try to set up your broadcast address at 10.0.0.1 at port 9999. When your app runs, it will do ping 10.0.0.1 to 10.0.0.255.
    All those that will respond will be added to your user list including their ip address. When you send a message or even transfer a file, you can use the ip address to connect to that computer and do your normal client - server messaging / file transfer.

    3. If you want to go to a higher level then just increase the number of ip address you will try to ping.

    4. You might also need to implement a daemon that will try to continuously do the pings again every several seconds/minute to refresh your list.

    With this, I think you should be able to create a serverless messenger.


    It will be easier to do it with a server though.

    Kani nga comment sakto ni....need jud ka ug pinger sa imong mga port & client...gahi kaayo ug logic & algorithm thumbs up boss...

  3. #13
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465
    chat ra sa ako boss, no file transfer, then murag it's lighting up gamai na, just some algo i assume to work and it did. i'll post more for updates and problems. tnx anyways

  4. #14
    actually gamay ra kaayo difference kung mag send ka ug file or just a simple text chat. labi na if i convert nimo to bytes ang file or ang imo text message.

  5. #15
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465
    Quote Originally Posted by dekarcane View Post
    actually gamay ra kaayo difference kung mag send ka ug file or just a simple text chat. labi na if i convert nimo to bytes ang file or ang imo text message.
    muabot ra nya ko ana boss. hehe. for now ok na akong aim.

  6.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Help! Decimal to Binary problem in JAVA. (Beginner)
    By Wordless in forum Programming
    Replies: 7
    Last Post: 10-12-2012, 11:13 AM
  2. how to print jtextarea in java
    By jairoh_ in forum Programming
    Replies: 5
    Last Post: 10-05-2012, 11:38 PM
  3. How to clear buffer in Java?
    By ares623 in forum Programming
    Replies: 17
    Last Post: 09-22-2009, 11:20 AM
  4. Thin Client as Gaming/Chat terminals for InternetCafe?
    By salbahis in forum Computer Hardware
    Replies: 17
    Last Post: 01-09-2009, 12:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top