Using sockets/TCP in add-ons #244
Replies: 3 comments
-
Hi Correct the DNS public server query's all use TCP connections, as initially the inherited library was written for TCP only (so no UDP usage) Try reviewing library \experiments\JSDNS.js. Or walk though of code use by breakpoint in TB Developer Toolbox >> Main Thread >jar:// >users/xxxxx > dkim_verifier .. > JSDNS.js
|
Beta Was this translation helpful? Give feedback.
-
Is it really raw TCP that you need, instead of HTTP? For HTTP there exist the As raw TCP is not something that is currently provided by the MailExtension API, you have to use a WebExtension Experiments for it.
As @tadpole2077 already wrote, the TCP code is in dkim_verifier/experiments/JSDNS.jsm.js Line 955 in 87d6874 Note that Dirk Steinmetz created a more general experiment API for TCP, that may be more useful for you: https://git.generalsync.com/oss/thunderbird-experiments.git/blob/HEAD:/experiments/tcp/child.js (GitHub URL) I would strongly suggest you write your question too the Add-On Developer Topicbox mailing list (see https://developer.thunderbird.net/add-ons/community), as that place is more suited for general questions about add-on development. |
Beta Was this translation helpful? Give feedback.
-
Closing as more being a question about add-on development that the add-on. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to make a new add-on for TB, and I have some problems, for some reason did you use socket TCP in this add-on? I'm trying to make a tcp connection, but I cant find the way, if you could help me I will be very grateful.
Beta Was this translation helpful? Give feedback.
All reactions