Solved

Chat IRC

Posted on 2002-04-15
14
314 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

773 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