Search the Community
Showing results for tags 'sockets'.
Found 3 results
Autoit-Socket-IO Introduction Autoit-Socket-IO is a event driven TCP/IP wrapper heavily inspired from Socket.IO with focus on user friendliness and long term sustainability. I created this UDF because I was fascinated how Socket.IO made a such scary task "reliable and secure networking" so simple for the developer. So this was my main motivation. I constantly want to make this UDF faster and better, so if you have any suggestions. Do not hesitate to make requests! Features Flexiable and easy to understand API Above avarage documentation "Fully featured" examples Security in form of data encryption and middleware-support Limitations Speed. Because I want this UDF to be as flexible and simple as possible. Sometimes speed is sacrificed, but that does not mean i don't try to . It is not possible to emit objects mainly because autoit does not support serialization. Only 1D-arrays can be emitted (2D arrays will probably never be supported) Success story Since December 2017-now I have used version 1.5.0 in an production environment for 40+ clients with great success, the only downtime is planned windows updates and power outages. Getting started Download the script from AutoIt or pull it from the official github repo firstname.lastname@example.org:tarreislam/Autoit-Socket-IO.git and checkout the tag 2.0.0 The documentation is located at Docs\index.html Take a look in the examples/ folder Changelog Version 2.0.0 (This update break scripts. Please consult the upgrade.md for guidance) All global internal variables has been renamed. Added a bunch of new API methods: _Io_RegisterMiddleware, _Io_whoAmI, _Io_IsClient, _Io_IsServer, _Io_getAllByProperty and _Io_getFirstByProperty and some more. Read more about these in the documentation. _Io_socketGetProperty now has a setter method called _Io_socketSetProperty which can be used to set custom properties. _Io_socketGetProperty now has a third parameter "default" which is used when a property is not found Removed _Io_setEventPostScript and _Io_setEventPretScript in favor of _Io_RegisterMiddleware Improved documentation (It still needs some love though) Improved the verbosity of _Io_DevDebug Newest version (2019-09-29!) Autoit-Socket-IO-2.0.0.zip Older versions (Not supported anymore) Autoit-Socket-IO-1.0.0.zip Autoit-Socket-IO-1.1.0.zip Autoit-Socket-IO-1.3.0.zip Autoit-Socket-IO-1.4.0.zip Autoit-Socket-IO-1.5.0.zip
So here's what I'm trying to accomplish: I need the ability to restart an application on my desktop PC from within my home network. Obviously, writing a script to do that locally would take all of ten seconds. The trick is that I want to do it remotely. I still feel like it wouldn't be difficult to accomplish with a server/client script. But of course, that's not good enough. I want to do it from my iPhone. And the easiest way I can see to accomplish that would be through the browser. So in my mind, I'm thinking that, on the server side, I can listen for connections on, let's say port 8080. I can watch for a "GET / HTTP/1.1" (or whatever it is...) and respond with a simple webpage that reports a status and has a reset button. On my phone, I type, say 192.168.1.150:8080 and get that simple page. When I click the reset button, it sends a "GET /?reset=true" or something and that will trigger a function in the server script to reset the app. So in essence, this would be a very simple web server, one that only serves a single, hardcoded page. But this seems too simple. Is it? Or is it actually way more complicated than that?
Hello everyone, recently (you could call it a day before yesterday), I made a robot (connected to my PC) which I could control using WinSock. This is fairly easy in C++, but could anyone please guide me how to write the function WSASetService (an example is greatly appreciated) in AU3. All I have done so far is this: Func _WSASetService() $WSAQUERYSET = DllStructCreate("dword;wstr;word") ;incomplete structure $RESULT = DllCall($hWs2_32, "int", "WSASetServiceW", "struct", $WSAQUERYSET, "int", 0, "Dword", 0) EndFunc I have no idea for typedefs really. By the way, could anyone tell me how do I search for proper typedefs in the header files of Windows SDK. Thanks... MKISH