-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reactPHP #19
Comments
Hi there @skydiablo. I have received a similar request on my ldap library. I think it's possible, but it's a large effort. All of the socket based code currently resides in the "freedsx/socket" library and is shared between my snmp and ldap projects. I would need to create an interface for the socket code that allows for different adapters (like ReactPHP) for the underlying transport. I would need to account for both synchronous and asynchronous socket based communication in the interface with something like ReactPHP. I'm not opposed to it, but I'm not sure if it's something I'll be able to add soon (personal life and work has been quite busy lately). Funny enough, I believe this library would work fine in something like Swoole since it modifies the underlying socket resource to be compatible with coroutines. |
here is my first draft |
Hey there @skydiablo , apologies for my delayed response. I've glanced over the PR / branch you have for ReactPHP. I appreciate the effort you took for these changes. I do have a couple of thoughts on it. I like the interface you have created for the socket. That is something that would be needed to provide integration with async networking libraries like ReactPHP / Swoole / etc. I think that SocketInterface should actually live in My ultimate goal would be to have no external dependencies directly in this library for something like ReactPHP. The client protocol handler / rest of the logic should be able to function without being aware of the underlying network communication type. Mostly because it's completely reasonable to use this library without a need for the async nature of a library like ReactPHP. That said, as a proof of concept that looks pretty good without a ton of huge changes. |
Hey, cool that you review my stuff. I have already more optimazations but Not pushed yet. Regards, Volker. EDIT: i have updated the branch with lates patches! |
hey! your lib seems to be in the right direction! what do you think to add reactPHP support?
The text was updated successfully, but these errors were encountered: