Jump to content

Chat Client

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
Hello all,

I am best at C++, but Java is my second language. I know about logic operators, data types, I/O, etc. But I was wondering what would I need to know to make a Chat Client using Java. Say I had a server (like a Dell PowerEdge) and I used it, would it be able to communicate with say my laptop and other Desktops (if they were connected to the server)? I'd also want to talk externally from the server.

Thanks.

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
Maybe Turk4N's tutorial may help you: http://forum.codecal...hat-client.html

#3
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
Seen it,

Didn't understand all of it. I want to know what things I should be looking up and researching.

#4
Dreamcatcher

Dreamcatcher

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
xmmm you have many ways to make to processes to "speak" remotely... So first of all you have to know to use the Objects of java...after that you may move to the main process of learning about rmi package... Take a look here: Trail: RMI (The Java™ Tutorials)

You can do that in many ways...Such as two clients talking with a server and the server forwarding the messages that it accepts or you can make a distributed edition. As you wish... Good luck :)

#5
Dreamcatcher

Dreamcatcher

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
hi dude,
first it would be wise if you learn more things about java such as objects and its uses. If you already be familiar with this you could move to the next step... RMI package is what you need... it is the way to invoke remotely objects between two processes in the same or in different pc's in different rules such as server-client, destributed processes etc... take a look here :Trail: RMI (The Java™ Tutorials)

This project it would works fine with sockets and unicast or multicast whatever you want... Nice idea therefore and good luck mate :thumbup1:

#6
qwerthex

qwerthex

    Newbie

  • Members
  • Pip
  • 2 posts
I would suggest that you look up the API for a java server. It explains how to set up a connection, designate port access, and how to set it up.

#7
deskchecked

deskchecked

    Newbie

  • Members
  • PipPip
  • 29 posts

Hunter100 said:

Seen it,

Didn't understand all of it. I want to know what things I should be looking up and researching.

Which parts didn't you understand? Google the terms or concepts you don't follow, read until you do understand. Return to the tutorial. Wash, rinse, repeat.

#8
Dreamcatcher

Dreamcatcher

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
try out some of rmi packages...it is the remoted invoke of objects in java... you can use also sockets if your familiar with them from c-based languages...try to google for RMI in Java

Edited by Dreamcatcher, 26 April 2010 - 01:02 AM.


#9
Corwin

Corwin

    Newbie

  • Members
  • PipPip
  • 12 posts
I wrote a step-by-step tutorial for a TCP socket-based chat some time ago. You can read it here. I'm not a full-time java dev but I enjoyed writing that example and I like to think that I did a good job building up and explaining the code.