When to send JOIN channel to IRC server?urgent..

i have a problem regarding sending information to IRC server. I want to send the join message to server. But i can only do so after server has finished sending information to me. may i know the correct coding ? i have tried to send it after the while loop but within the try {} it still wouldnt send. when i tried to send it earlier by placing the code above the while loop, the server will display error requesting me to register first.
Below are the codings... Thanks in advance
import java.io.*; //---These two are needed for socket support---
import java.net.*;
public class IRCConnect
public static void main(String args[])
try
char response;
Socket s = new Socket("singapore.sg.galaxynet.org", 7000);
BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
PrintWriter out = new PrintWriter(s.getOutputStream(), true); //---Set up an output stream---
out.println( "USER" + " " + "Testbot" + " " + "an13810.ath.cx" + " " + "singapore.sg.galaxynet.org" + " " + ":" + "Test bot" );
out.println( "NICK" + " " + "testWLbot");
String line;
     do //to join channel...
     out.println( "JOIN" + " " + "#" + "ReXT6ux" );
     out.println ( "PRIVMSG" + " " + "#" + "ReXT6ux" + " " + ":" + "Welcome to #ReXT6ux" );     }
     while((line = in.readLine()) == null); //to wait for server to finish sending data to client.
while((line = in.readLine()) != null)
     System.out.println(line);      //---Displaying status.---
     if(line.substring(0,4).equalsIgnoreCase("ping"))      //---To prevent from disconnect.---
     String pongmsg = "pong " + line.substring(5);
     //System.out.println(pongmsg);
     out.println(pongmsg);
     System.out.println("ping pong");
     }//---End if---
} //---End Try---
catch(IOException e)
e.printStackTrace();
} //---End Catch---
}

i had a similiar problem, i believe the solution was to wait after sending the "NICK" or "USER" commands to receive some sort of response (could be PING) look at the RFC (www.rfc-editor.org) and if you don't find it there i can post the code i used but its long and messy.
but i think your problem is you need to respond to a ping (or some other command) after trying to authorize.

Similar Messages

  • Ipad air when I send a email it says server can't send and puts it in my outbox

    Ipad air when I send a email it says server can't send and puts it in my outbox

    Is this a request for help? If so, where's the question?
    Have you set up you mail server and login correctly?

  • Hi, I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mail are not receiving. Mail queue showing Connection refused error. Please help me

    I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mails are not receiving. Mail queue showing Connection refused error. Please help me
    Thanks
    GIRI

    Try this -> http://support.apple.com/kb/TA38632?viewlocale=en_US

  • Cannot send to channel in IRC you are banned [Solved]

    Please  i enjoy chillaxing in the IRC channel ,i learn a shedload from these guys , ive never spammed or broken any rules,.   seems a mod is banning by IP and not cleaned the banlist as i see this happening to others , please advise.  i am registered and identified ..
    regards
    cirrus
    You are now identified for Cirrus_Minor.
    * unaffiliated/cirrus-minor/x-6868843 :is now your hidden host (set by services.)
    * Cannot join #archlinux (You are banned).
    Last edited by cirrus (2012-09-15 12:11:48)

    @tomk    yes but i am unable to post i get  cirrus_minor | test     #archlinux: Cannot send to channel   
    sorry if i posted in wrong place , thanks for letting it hang in the hope an irc mod see's it.  ty ewaller imma ill email them now.
    regards
    cirrus
    [EDIT]   It would appear i was  banned for a reason @ forum MOD , please delete or move this thread.
    regards
    Last edited by cirrus (2012-09-15 12:11:24)

  • How do I specify the gmail outgoing server if I have multiple gmail accounts in my mail? I have 2 business accounts and when I send mail from one account, it is sent from the other account and the sending email is not from the correct account.

    I love my apple email and do not want to use google mail on safari. However, I have 2 gmail accounts set up on apple mail, but when I send mail from one of my gmail accounts (I choose the specific gmail account in the drop down window), it actually goes out as if it is from the other gmail account. I can't have that happen because one is my job, the other is a personal business account and unfortunately, the mail from both gmail accounts want to send through the personal business account. How do I make it send from a specific gmail account? I even tried deleting the accounts and setting them up again hoping I set it up wrong in the first place, but to no avail, it is still doing the same thing except this time I set the job account up first and then the personal business account and now everything goes from the job account! The only good thing is that the incoming messages work properly and they go into the correct inbox. Somebody please fix my outbox!

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • I can use Mail at home, no problem. But when I travel, I can receive mail but not send it. I get a "server can't be reached" message. Yet when I send a photo using iPhoto, it gets sent. Help!!

    I can use Mail at home, no problem. But when I travel, I can receive mail but not send it. I get a "server can't be reached" message. Yet when I send a photo using iPhoto, it gets sent. Help!!

    To diagnose problems with Thunderbird, try the following:
    *Restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''. This loads only the very basics needed to start your computer while enabling an Internet connection. Click on your operating system for instructions on how to start in safe mode: [http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-including-safe-mode Windows 8], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-vista Windows Vista], [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true" Windows XP], [http://support.apple.com/kb/ht1564 OSX]
    ; If safe mode for the operating system fixes the issue, there's other software in your computer that's causing problems. Possibilities include but not limited to: AV scanning, virus/malware, background downloads such as program updates.

  • When I send mail, I keep getting this message. An error occurred while sending mail. The mail server responded: "JunkMail rejected - 71-12-190-31.dhcp.leds.al

    When I send mail, I keep getting this message.
    An error occurred while sending mail. The mail server responded: "JunkMail rejected - 71-12-190-31.dhcp.leds.al.charter.com ([127.0.0.1])
    [71.12.190.31]:52956 is in an RBL, see
    http://www.spamhaus.org/query/bl?ip=71.12.190.31". Please check the message recipient [email protected] and try again.
    How do I get rid of this problem?
    WNS

    Hi there,
    If you have a closer look at message you are receiving it already states the problem. The domain 71-12-190-31.dhcp.leds.al.charter.com is blacklisted by spamhaus.org (is in an RBL).
    Your TB is (my guess) setup to send the message directly to the recipient.
    As a rule of thumb the majority of mail sent from a dynamic dns address (the kind of address you are getting from your ISP) is blacklisted as a precaution against spam abuse due to virus/trojan infected PC's.
    Nothing you can change there. Stop sending the message directly and use your ISP's account instead.
    /Frans

  • Sender file channel in DLNG mode when ICO used

    Hello All,
    I am working on SAP PI 7.4 version Dual stack installation.
    As part of Inbound Interface development, Operation mapping has been included in Integrated Configuration Object (ICO). But when tried to execute the Interface the sender File communication channel always into Delivering mode DLNG and it never went to DLVD mode while reading input file.
    Hence I have followed the traditional approach of by creating all configuration objects RD,ID,SA,RA in place of ICO. Now the communication channel is able to read the input file successfully.
    Can any one please tell me the reason behind this issue
    Note : There were no changes/corrections made to the sender file channel.
    Thnx&Regards,
    Moorthy

    Hi naresh,
    Check the communication channel montiring tab ,give the channel name and see whether able to ping the destination and down you can see logs as well.
    Regards,
    Loordh.

  • When I try to send e-mail I get an error message stating that the e-mail address was rejected by the server.  When I send to e-mail from another address, I get back an error saying the e-mail address is unknown.  My e-mail has worked fine for years until

    When I try to send e-mail I get an error message stating that the e-mail address was rejected by the server.  When I send to e-mail from another address, I get back an error saying the e-mail address is unknown.  My e-mail has worked fine for years until yesterday.  HELP!

    The specific text of the error message is very important here — I'm not sure exactly you're encountering here.
    If you're able to connect to your email server and are able send email to other email addresses and if the failures are specific to one email recipient address, then please contact the intended recipient of the failing email, and confirm their address is valid.  (This is the way I'm reading your question.)
    If you are unable to send any email to any other email addresses and this is specific to your email address, then try the web mail client interface (if one is available) to verify your login user and password, and check with your email ISP for assistance.  If your email password works via web mail, follow this Apple troubleshooting guide, then — if everything else fails — I'd probably then entirely remove the email account from Mail.app and re-add it per your email ISP's particular setup requirements.  (Some issue with the setup or maybe a corrupt setting in OS X or a problem at the mail ISP servers is a common problem, but this effects attempts to send to all email addresses via that account.)
    An email account setup is specific to an email provider, unfortunately.   If you're using one of the more common email ISPs, then there are usually setup guides and frequently-asked questions posted online.

  • When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does nog display my name or e mail address. This only since upgrading my iPhone5 to iOS7

    When I send a mail from my iPhone, it displays the mail server name to the receiver if the mail and does not display my name or e mail address. This only since upgrading my iPhone5 to iOS7. I've checked all settings etc. anyone have a solution please?

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • When i send a mail to the user of messaging server, it returns saying unknown user.

    I am trying to add a mail user to iplanet messaging server 5.1, I am able to configure that user from my mail client (outlook) but when i send mail to that user, it returns saying unknown user. I can see that user in LDAP data base/

    This could be symptomatic of the iMS 5.1 server not yet having done a full synch to its alias database of the LDAP server. This is done every 24 hours (default) at 2 or 3 am. You can synch manually by running the "imsimta dirsync -F" command.

  • Alert when Sender Communication channel is inactive/down

    Hi,
    Kindly let me know if we can generate an alert using alert configurations/rules when Sender Communication channel is inactive/down.
    Thanks.
    Regards,
    Aditya.

    May be in the channel monitoring the channel is stopped. If you are sure that the channel is active in ID and in Start mode in communication channel, then it is a cache issue. Then, perform full CPACache refresh.
    Regards,
    Prateek

  • I get a error when I send a Email. Recipient "email@address"  was rejected by server by sever

    I get a error when I send a Email. Recipient "email@address"  was rejected by server by sever

    I set up my email the way the phone and iPad do. Very simple. It works most the time, but I am usually on wifi also. I ran into problem saying email was rejected by server, and it put email in my outbox. I looked in here to see if anyone had a good solution, then realized after reading the post I never actually checked my servers. My actual servers were different than the defaults that were set up. Example : the default server was mail.roadrunner.com, but the actual should be pop-server.roadrunner.com, and same for the smpt-server.roadrunner.com. Based on the ISP, must have the correct servers. But I was always able to send while on wifi. That part I did not understand. But since I fixed the servers, I have not seen any problem sending on either the iPad or iPhone. If you have not found fix, hope this may help if still having problem

  • Mine is Yahoo where POP is used .TB is IMAP . i can receive and send mails , but when making action on TB (Del or send) no reflection on main server

    Hello there,
    My e-mail is Yahoo, and Yahoo by default is POP user .
    I understood from your help file that synchronization is compatible only with IMAP mail provider
    I can receive and send mails from TB , but when making action on TB (Del or send) no reflection on main server, same when make the action on the main server (Del or send), no change on TB
    from yahoo help I managed to find configuration for IMAP , but could not apply them on TB , as TB have already Yahoo as POP in the configuration list
    please your help on this
    best regards
    Mohamad

    You cannot convert an existing account, but you can set up your Yahoo account as IMAP in parallel to the existing POP account. See
    http://kb.mozillazine.org/Convert_a_POP_account_to_a_IMAP_account

  • Since upgrading iMac to osx lion I have been experiencing problems in mail, it spontaneously stops receiving and tells me it can't find the pop server and also the biggest problem is that when I send with an attachment the recipient doesn't receive it.

    Since upgrading iMac to osx lion I have been experiencing problems in mail, it spontaneously stops receiving and tells me it can't find the pop server and also the biggest problem is that when I send with an attachment the recipient doesn't receive it.
    I have to restart mail most times before it starts recieving or recognizes the pop server.
    As I said a lot of recipients do not recieve my mails when there is an attachment or when I reply to their email.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for

  • I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?

    I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?    

  • IPhone is freezing ever since iOS7 update.

    Anytime I type (entering passcode or using keyboard) my iPhone freezes for 5-10 seconds. This started happening immeadiatly after the iOS 7 update. I've rebooted it and the problem persists. Any ideas on how to fix this?

  • Alv / pdf

    Hi All, My task : ALV report to PDF format (from a abap report) after calling REUSE_ALV_LIST_DISPLAY  in sp01 it showing all columns (9 coulmns) . I used FM CONVERT_ABAPSPOOLJOB_2_PDF and download the file, there I can see only 4 coulmn. When I use s

  • Photo update changed sorting...?

    the last time photo was updated through itunes, it changed the way my photos were sorted. instead of by filename, it's now by date. how do can i change it back to sorting by filename and not date? i know it's by date because i have always named my fi

  • Music library

    Hi there, Unfortunately, I bought nokia n 97 mini. Now suffering from music library problem... When ever I transfer new music file, it does not update the list. When I try to refresh the list, It never worked. Once I tried to refresh it in night and