Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Chat IRC

Posted on 2002-04-15
14
Medium Priority
?
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 160 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

730 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