User Tag List

Results 1 to 2 of 2

Thread: MooSock and IRC. Issues with Server Connection.

  1. #1
    No Products Registered

    Join Date
    Jul 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question MooSock and IRC. Issues with Server Connection.

    Before I get into my question, no; I don't want to use LaceWing or the DarkSocket extension (sorry, DarkWire). I'm not trying to switch extensions and start my project all over again because somebody has a preference for some other extension. I've asked the same question on ClickConverse and over at tDC to no avail. The only answer I get is "why are you using IRC?" or "Don't use Moosock, use DarkSocket".

    I've searched google, tDC, CT's forums, and asked around on ClickConverse. Every time I think I've found an example or tutorial, it turns out to be a 404 error or a broken link. I understand that there isn't much interest in supporting IRC connectivity in MMF2 apps which would explain why the tutorials just don't exist anymore, but I'd really rather not depend on someone else's LaceWing server and IRC connectivity just seems to be far more dependable.

    Anyway, I'm not having any issue understanding how MooSock works. I get the methodology. I just don't know what commands I need to send through to the IRC server to create a persistent connection. I keep getting booted on Ident server and PING requests. The PING requests seem pretty straight-forward, but it's rare I get a PING request before the Ident server request and in either regard, I simply get disconnected afterward.

    This is what I've got:

    ::/ Winident.exe is the stand-alone Ident server.
    Start of Frame:
    MooSock -> Select socket at index 0;
    Special Conditions -> Execute external program "apppath$+"bin\ident\winident.exe"

    Connect Button Clicked:
    MooSock -> Connect to "irc.dal.net" on port 6667;

    ::/ Sends server messages to the Rich Text Object so I can see how the server is replying.
    MooSock On Received:
    MooSock -> Accept;
    Rich Text Object -> Set text to GetText$( "Rich Edit Object", 0, GetNChars( "Rich Edit Object" ))+RecvLine$( "MooSock" )+NewLine$;

    ::/ Sends Nick + NickName. Sends USER + NickName + localIP + ClientName + :Real Name.
    MooSock On Connect:
    MooSock -> Send Text Line "NICK " +Edittext$("Username_Editbox");
    MooSock -> Send Text Line "USER "+Edittext$( "Username_Editbox" )+" "+GetLocalIP$( "MooSock" )+" MMFclient"+" :Grim Client";

    ::/ Displays when my app is disconnected from the IRC server.
    MooSock on Disconnect:
    Rich Text Object -> GetText$( "Rich Edit Object", 0, GetNChars( "Rich Edit Object" ))+"Disconnected!"+NewLine$;

    ::/ Replies to PING requests by removing the first four characters and sending the request as PONG + remainder of original PING request.
    Compare two General Values: Left$(RecvLine$( "MooSock" ), 4)="PING":
    MooSock -> Send Text Line "PONG"+Right$(RecvLine$( "MooSock" ), Len(RecvLine$( "MooSock" ))-4);
    Rich Text Object -> GetText$( "Rich Edit Object", 0, GetNChars( "Rich Edit Object" ))+"PONG"+Right$(RecvLine$( "MooSock" ), Len(RecvLine$( "MooSock" ))-4)+NewLine$;

    Disconnect Button Clicked:
    MooSock -> Disconnect.

    Can anybody tell me what I'm doing wrong? I may have the configuration on the Ident server messed up, or I could just be going about this in the entirely wrong fashion. I don't know because I don't get any feedback outside of "Disconnected!". If anybody can help or at least point me to an example or tutorial, I would be really appreciative.
    Attached files Attached files

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    In the past Phi sent me an example MFA with almost-fully working IRC chat using MooSock. It seemed to have been messed with and took a little effort to fix, but it was a great start. Maybe you can ask him for it? He had to PM it to me back when the IRC bridge existed for Gwerdy to prevent misuse.
    Working as fast as I can on Fusion 3

Similar Threads

  1. creating MooSock connection statement
    By itsALaCroix in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 9th December 2011, 02:35 PM
  2. Connection Issues
    By dragonguy in forum Lacewing
    Replies: 6
    Last Post: 21st September 2008, 09:24 PM
  3. Moo connection issues
    By ghost in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th May 2008, 10:56 AM
  4. Public MOO Server - Connection Problems
    By CodeCannon in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th March 2008, 07:19 PM
  5. MooSock Connection Problem
    By Hezkore in forum File Archive
    Replies: 5
    Last Post: 5th April 2007, 07:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •