What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Coder77

New Member
Joined
Sep 24, 2015
Messages
23
Reaction score
0
[Challenge] Plugins talk to other Plugins

Problem
I was wondering if it was possible to write for 1 plugin to send an array of bytes of data to another plugin running in the same bot.

Example:

Code:
        public bool SendMsgToPlugin(string pluginName, byte[] msg)
	{
		return true if plugin is running.
		false if it s not.
	}
	
	public delegate void OnPluginRecieveMsgDelegate(string senderPluginName, byte[] data);
	
	public event OnPluginRecieveMsgDelegate OnPluginRecievesMessage;
*NOTE: This is just a rough draft of functions, that would be supported by the main Core methods.

Basically allows plugins to communicate to each other in the same instance of each bot.

I could figure how to work around this easily, however it would require much more work and I must manage my time as best as possible.



Challenge
If this is not already supported, I challenge you to respond with a work around that would be efficient and the most simple.




Have Questions?
Feel free to reply or PM me and I will get back to you.
 
Last edited:
Problem
I was wondering if it was possible to write for 1 plugin to send an array of bytes of data to another plugin running in the same bot.

Example:

Code:
        public bool SendMsgToPlugin(string pluginName, byte[] msg)
	{
		return true if plugin is running.
		false if it s not.
	}
	
	public delegate void OnPluginRecieveMsgDelegate(string senderPluginName, byte[] data);
	
	public event OnPluginRecieveMsgDelegate OnPluginRecievesMessage;
*NOTE: This is just a rough draft of functions, that would be supported by the main Core methods.

Basically allows plugins to communicate to each other in the same instance of each bot.

I could figure how to work around this easily, however it would require much more work and I must manage my time as best as possible.



Challenge
If this is not already supported, I challenge you to respond with a work around that would be efficient and the most simple.




Have Questions?
Feel free to reply or PM me and I will get back to you.

Hi, you can achieve this using sockets.
 
Back
Top