Possible to get client type with ReactPHP sockets? #499
-
Hi. I was just wondering if it's possible to get the type of client connected to a socket server using ReactPHP sockets. For example, if the user connected with MSDOS, is it possible to retrieve that the user connected through MSDOS programmatically? I tried dumping all the class methods of the ConnectionInterface object to look for hints but didn't find anything. I'm not sure this is possible with PHP but figured I'd ask. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The only thing we get is the remote IP and port a connection comes from. Unless there is something optionally available in TCP IP that would provide this information, but we aren't aware of that. The simplest way would be for the client to send you that data. |
Beta Was this translation helpful? Give feedback.
The only thing we get is the remote IP and port a connection comes from. Unless there is something optionally available in TCP IP that would provide this information, but we aren't aware of that. The simplest way would be for the client to send you that data.