Re: peer to peer messaging



Hi! I know exactly what I want... I just didn't know how much details
I would have to provide for you to understand what I want to do.

I'm creating an application like your typical msn messenger. Here's
how my application will work:

I have users (clients) that will create an account... this information
is sent to A central server where it will be stored into a database.
Users can add other users to their addressBook. The database will
store information like the user's username, publicKey (ignore this),
and status (whether they are online or not). This is helpful so that
when a user signs in, an address book is created from the server
(including all the contacts that the user added) and then send the
addressbook back to the user. Please keep in mind that up to this
point I have been using RMI... I've pretty well completed all of this.

The problem comes now... When the user goes to send a message, it will
use a socket connection to do so. All that RMI stuff was just for
authentication and other crap (setting up). Now for actual messaging
I'm dealing with Sockets. Now, up above a guy mentioned port
forwarding... i've done this before where I had to go into the Router
settings and forward certain ports to my machine. That's fine but I
know you don't have to do this for normal msn... so how does msn work
for sending a message from one machine to another?

Anyways, hopefully this explains my application a little more clearly.

Thanks!

.



Relevant Pages

  • Re: peer to peer messaging
    ... > I'm creating an application like your typical msn messenger. ... > is sent to A central server where it will be stored into a database. ... up above a guy mentioned port ... Ahh BUT the MSN *server* is sitting outside of your natted network and ...
    (comp.lang.java.programmer)
  • Re: How to Get Web Page Content
    ... IOException ... socket connection )? ... MSN: gumpagain44#hotmail.com ... /* Java Is Not Platform-independent.It Is The Platform! ...
    (comp.lang.java.programmer)