User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Lacewing Socket Error

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,840
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)

    Question Lacewing Socket Error

    Hey,
    Trying to make a custom Lacewing server. I've linked the function successfully, including On Errors, and started hosting, without problems. However, regular Lacewing MMF clients (on the server's computer, the server's network, and the internet) that are attempting to connect receive "Error connecting - Socket error" which isn't very descriptive. The firewall has been set to allow connections, but the linked On Connect function is never executed, and neither is On Error.
    I'm using liblacewing as a DLL, built in Debug mode, and I'd like to know if there's a way to receive a more informative error.
    Using a regular Lacewing Relay Server object works fine.
    Thanks,

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Did you use Lacewing::Server or Lacewing::RelayServer?

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,840
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Lacewing::RelayServer.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Which version of liblacewing? Can you post your source?

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,840
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)

    Re: Lacewing Socket Error

    I'm using 0.2.6, and the skeleton code of the server is this:
    Code:
    bool OnConnect(Lacewing::RelayServer &Server, Lacewing::RelayServer::Client &Client)
    {
    	Debug("OnConnect triggered (Server)."); // Does not run
    	return true;
    }
    
    class Server
    {
    	public:
    	Lacewing::RelayServer LacewingServer;
    	// ...
    	Server()
    	{
    		LacewingServer = new Lacewing::RelayServer(pExt->AppEventPump);
    		LacewingServer->Tag = this;
    		LacewingServer->onChannelMessage(::OnChannelMessage);
    		LacewingServer->onConnect(::OnConnect);
    		LacewingServer->onDisconnect(::OnDisconnect);
    		LacewingServer->onError(::OnError);
    		LacewingServer->onJoinChannel(::OnJoinChannel);
    		LacewingServer->onLeaveChannel(::OnLeaveChannel);
    		LacewingServer->onPeerMessage(::OnPeerMessage);
    		LacewingServer->onServerMessage(::OnServerMessage);
    		LacewingServer->onSetName(::OnSetName);
    
    		LacewingServer->SetWelcomeMessage("Generic welcome message");
    		LacewingServer->Host(6121);
    		Debug("Server::Server() executed; host returns %i for Hosting.", LacewingServer->Hosting()); // Runs and shows Hosting() returns true
    	
    	}
    }
    
    void Extension::BootCustomServer()
    {
    	Debug("Creating new Server class.");
    	Server * MyServer = new Server;
    	Debug("Class created; server booted on port 6121.");
    }
    The actual code is much more complex, but that's how I'm using it.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't really see how that code would compile? "LacewingServer" isn't a pointer, but then you're using it as one.

    Anyway - perhaps you could isolate this into a minimal example file, and then I can see what's going wrong (ledev.org is running a liblacewing 0.2.6 relay server at the moment and it's working fine).

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,840
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    That was an spelling mistake yeah, there should be a * in there.
    I'll see if I can cut down the code from the original, but it's quite bulky.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Start with a new, minimal server and work up from that until it breaks.

  9. #9
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,840
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Well, I cut down my current one by creating a new VS project and copying some of the code, and I'm encountering DLL errors again, where it compiles fine but doesn't appear in the Create Object list. I'll try to work around that and have an object here by Saturday.

  10. #10
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,840
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    On a similar note, I couldn't connect to any of the public servers yesterday. Ledev's were both reported offline by LB's PHP script, and Klikfarm was reported online, but never triggered the On Connect condition (nor did it report a timeout).

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Lacewing error
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th November 2012, 01:50 AM
  2. Lacewing - Socket Error
    By blub in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 13th June 2012, 02:01 PM
  3. Lacewing Flash Error/Bug
    By Pharanygitis in forum Lacewing
    Replies: 3
    Last Post: 6th June 2012, 04:26 PM
  4. Lacewing Socket error
    By anthonyjk123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th March 2012, 01:34 PM
  5. List of Lacewing error msgs?
    By JIMJ316 in forum Lacewing
    Replies: 14
    Last Post: 11th March 2010, 11:12 PM

Posting Permissions

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