Solved

Chat IRC

Posted on 2002-04-15
14
317 Views
Last Modified: 2010-03-31
Hi all
I am writing a chat application with my own rooms and I want to enable user to coonect also to IRC servers, what should I do and what should I write?
How it will work?
   Thanks
0
Comment
Question by:dannysh
  • 7
  • 4
  • 3
14 Comments
 
LVL 1

Expert Comment

by:googlyralph
ID: 6942284
Hi,

Writing a functional chat server is a big undertaking if you intend to interface with somehting like IRC.

I would recomend you look for a Java IRC client that has source on the web (try www.google.com and search for +"Java IRC"   (with the plus, and quotes)).

Failing that, look online for the IRC specifications, and starting writing a wrapper, that will interface with whatever protocol you are implementing for your own chat server, to IRC.

Hope that helps.

GR.
0
 

Author Comment

by:dannysh
ID: 6942512
Hi
Do you know where can I find a simple wrapper?
0
 

Author Comment

by:dannysh
ID: 6944182
Hi
I think I understand the IRC commands, but how will the wrapper looks like? If I have a a simple chat client who chats with my chat server (I wrote it) what does it means to let a client connect to IRC server? should I create different client for this porpuse?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Expert Comment

by:googlyralph
ID: 6944183
You will need to write the wrapper. Eg:

=============
+your server+
=============
+  wrapper  +
=============
+ IRC Client+
=============

(Excuse the poor "drawing"...)

You will write your server, then either write your own IRC client, using the IRC specification, OR write a wrapper that allows an IRC client someone else has written to communicate with your server.

GR.
0
 
LVL 1

Expert Comment

by:googlyralph
ID: 6944185
Before we continue, could you answer these questions please.

Do you have your server written?

How do your clients "talk" to your server?

How long have you been using Java?

Thanks, GR.
0
 

Author Comment

by:dannysh
ID: 6944206
Hi googlyralph

>> Do you have your server written
I am working on design document for implementing the server and the client.

>>How do your clients "talk" to your server
The client will be able to talk with the server using :
   1. be directional socket (send and receive messages via the same path)
   2. send via direct socket and receive messages in other socket (that's a spicial requirment)

>> How long have you been using Java
I am using java almost 3 years.

   Danny

0
 

Author Comment

by:dannysh
ID: 6944208
I am trying to design the communication layer between client and the server in a proper way (As I wrote before I have a special requirments for the communication layer)that's why I am askink those questions.
0
 
LVL 1

Accepted Solution

by:
googlyralph earned 40 total points
ID: 6944228
If you are serrious about the Comms layer, then take a look at this page:
http://www.user-com.undernet.org/documents/rfc1459.html
It is the IRC protocol specification. There are some Java based IRC cleints, so if you search the web, you may be able to get permission to use their code. If not, you will have to implement the protocol yourself.

Implementing the protocol is a fair sized task, so it may be worth looking for free code that does this already. Once you have the IRC code, you need to either modify, or extend it to fit into your server arcitecture.

GR.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6956400
Please click the link below to maintain your open and locked questions, and keep them updated.
http://www.experts-exchange.com/jsp/memberProfile.jsp?mbr=dannysh&showQHistory=true
Moondancer - EE Moderator
0
 

Author Comment

by:dannysh
ID: 6957353
Hi Moondancer
The status of this question is Unlocked.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6957873
Hi, dannysh, true.  I was showing you the quick way to check all your open as well as any locked questions so you can keep the updated with progress to expedite getting what you need.  You've asked 6 questions, 3 are open and one is dated 3/6/02.  Experts appreciate getting your feedback on all comments they've posted to help you.

Thanks,
Moondancer - EE Moderator
0
 

Author Comment

by:dannysh
ID: 6957890
Hi Moondancer
I asked some questions and when someone suggest me a solution, I try it and if it solve my problem, I give him the points. Sometimes I don't have a time to check the solution cause I am doing somting else and I am trying to do it ASAP.
Thanks for your comment I will try to Do it.
   Danny
0
 

Author Comment

by:dannysh
ID: 6957893
Thanks It help me a lot.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6958170
Fantastic, thanks, dannysh.  As long as you stay active in your questions here and let experts know that you are still involved, all is well.

Thanks for finalizing this.

:) Moondancer - EE Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hibernate example for saving data 19 57
Java: How do I open the default windows program for a given file type 3 41
sql import cannot be resolved jsp 3 50
Java class and jar 3 25
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question