Is there a WebSocket client (not a server) written for Lua.
It can either be a C module or in pure Lua.
I gave up and switched to regular sockets on the server side. It was much easier.
Yes,there is https://github.com/lipp/lua-websockets. It does not add any C bindings, but relies on luasocket, lpack and depending on your usage scenario (lua-ev).
Yep. http://w3.impa.br/~diego/software/luasocket/
I could only find this pastebin:
http://pastebin.com/f50d79dcd
Related
i'm working on a project using esp8266 nodemcu board, and found right at the beginning that there is an IDE for this board called ESPlorer IDE which uses Lua code, so i've using https://nodemcu.readthedocs.io as my go to, but now i want to implement the esp now protocol on my project but i can't since there is no documentation for it's usage on lua, so my question is. Is there a way to use ESP NOW protocol using lua?
or do i have to use another IDE and start all over?
It looks like the ESPNow protocol isn't supported by the NodeMCU firmware by default; there's an issue requesting support from September 2019.
If you're adept in C, you could maybe be the hero to implement that, but otherwise... no, unfortunately you can't use ESPNow with NodeMCU/Lua.
How do you implement the server side in iOS using thrift? Using the thrift wiki, I was able to figure out how to write a client using thrift, but there seems to be no documentation in writing the server. Any example code would be greatly appreciated.
AFAIK You can't have the server in Objective C as only the client bindings are supported. You can however use the C/C++ server bindings. What is your use case? It seems odd to have the server on an iOS device.
Here is the link to the C++ usage docs.
I am busy with a project where I have to code a program in Delphi that will translate an English word to another language. What would be the easiest way to approach this? I was thinking about using Microsoft Translator V2 API from Delphi, but it seems very complicated and I am not yet that experienced in Delphi. Any other suggestions?
Thanks in advance :)
Thanks to RRUZ you can follow this article about Microsoft Translator V2 API implementation for Delphi; inluding the full (even speaking) example.
If you don't have to be self-contained, you could make a webservice call (soap, etc..) to the cloud (google, etc..). The nature of your app (is it a translation program? or do you just want to provide translation in another app, along with spellcheck, thesaurus, syntax highlight, etc..?) will determine whether this is feasible or not.
I need loging all HTTP request (from any application).
I have Delphi 7.0.
Anybody know how do that?
I looked into whether the Indy components could do this but found an old newsgroup response from Remy Lebeau that said:
If...you want to look at the traffic
that other applications are
generating, then no, you cannot use
Indy for that. That is outside the
scope of what Indy is designed for.
You would have to write your own NDIS
driver for that kind of capturing. Or
use a third-party sniffer API, such as
WinPCap.
What about WireShark?
There is also a product called Fiddler. I have found this extremely useful to track down exactly what the Indy components are sending/receiving. The one drawback is you have to utilize a proxy. This isn't a problem with Indy components and browsers such as Firefox. But if you need to capture for all applications you would need to be able to set a proxy for those apps.
if you want to go deeper and want pure delphi thing, there is winsock logger program floating around, google might help you ( it hooks winsock apis though).
Do you have to write a Delphi app to do it? Could you use an application like ethereal?
Does anyone have experience integrating SmartCard authentication in their Win32 apps? If so, are there any preferred libraries?
Try SecureBlackbox, A component that works fine for me, a second choice can be
Delphi PC/SC SmartCard Component 0.91.
try
Well I guess that you have an SmartCard reader ... if so (and if you don't have one I don't know how you are going to manage this) then it must have some interface, RS232, USB, TCP/IP ... any one will do.
Communication protocol usually is available at SmartCard reader manufacturer. Few lines, and you will have it working in Delphi.
You need to read the developer manual that comes with reader you're going to use. It might only use PC-SC (by MS) to communicate, if so you can use the component specified by RRUZ, however it doesn't work with D2009. Otherwise you'll need to use API provided by SDK.