-
Content Count
1200 -
Joined
-
Last visited
-
Days Won
16
Everything posted by FPiette
-
Can a Send be done outside the thread a TWSocket is attached to?
FPiette replied to PeaShooter_OMO's topic in Network, Cloud and Web
If you want to use ICS in threads, a good design would be to have all socket activity executed by the thread itself. If the data to be sent comes from another thread or received data must be processed by another thread, don't share the ICS component but use standard inter-thread communication techniques to do the transfert. Note that processing by ICS is not a CPU intensive process so you won't gain much using thread. Instead it is better to keep actual data processing along with the ICS component in the thread. For example, you can use a thread in a server application to handle a single client (or a few hundreds). Use ThreadAttach and ThreadDetach to move socket handling from one thread to another thread. Writing a multi-threaded application is hugely more complex than a single-threaded application, debugging is particularly difficult. You benefit from thread when computing can be done in parallel. For file transfer operation, there is almost no processing involved so benefit is low. Don't forget that the real network throughput is frequently the limiting factor. And even if you have a fast hardware speed (1Gbps for example) doesn't means that the network card you have is able to sustain such throughput. -
[MidWare] MidWare, Delphi 12
FPiette replied to WalkingAway's topic in ICS - Internet Component Suite
Midware has been developed for professional projects. It has been used for more than 10 year in a large scale application having more than 700 concurrent users on a LAN. Backend database was MS-SQL server. It has also been used it many smaller applications. -
[MidWare] MidWare, Delphi 12
FPiette replied to WalkingAway's topic in ICS - Internet Component Suite
Well, Midware is much, much more than a simple stream. At the highest level, it is a TDataSet and is meant to be used as middleware in a multi-tier database application. -
[MidWare] MidWare, Delphi 12
FPiette replied to WalkingAway's topic in ICS - Internet Component Suite
Thank you for trying Midware. The library doesn't support Unicode nor SSL. Unfortunately, I do not maintain this library anymore. But you are welcome to update the source code and mail it to me 😉 To make it working, you has to understand how it works... It should no be too complex to update the code for SSL. -
Do you want the exe with shared for to be launched by one application each time the application needs the form? It would be quite inefficient and you'll have to manage having several instances of the form hosting application. It is possible, but will be quite complex... Instead, you can put the form inside a DLL that each application will load. Or even simpler, just compile the form's code into the 5 applications.
-
How to debug an app that need to run as administrator from the IDE ?
FPiette replied to William23668's topic in General Help
Just run the IDE as administrator. -
ICS V9.0 - How to use it with Delphi 7 and Delphi XE Start without errors
FPiette replied to PavelOu's topic in ICS - Internet Component Suite
I don't read attached text file. You must make the effort of copying the relevant part of text in your message. I won't help you except if you follow the rules and follow what I ask you to do. -
ICS V9.0 - How to use it with Delphi 7 and Delphi XE Start without errors
FPiette replied to PavelOu's topic in ICS - Internet Component Suite
I told you: -
ICS V9.0 - How to use it with Delphi 7 and Delphi XE Start without errors
FPiette replied to PavelOu's topic in ICS - Internet Component Suite
You first have to INSTALL the components as stated in the ReadMe file. Before components are installed, you cannot open any form having one of the component without having the error you see. You need to click CANCEL or you'll have the component removed and of course tons of problems after. Restore the unit (pas and dfm) from the zip! -
ICS V9.0 - How to use it with Delphi 7 and Delphi XE Start without errors
FPiette replied to PavelOu's topic in ICS - Internet Component Suite
What error message do you get? What do you mean? You have an unfinished beta version? Remove that version and install Delphi Community Edition which is free, you just have to request it. I already told you that several times and gave you the link to request it. -
ICS V9.0 - How to use it with Delphi 7 and Delphi XE Start without errors
FPiette replied to PavelOu's topic in ICS - Internet Component Suite
You ask help. We gave you advises and told you what to do. You never follow what we say. Start everything from the beginning: download ICS from the Wiki. Read and follow the ReadMe file. Read again what I previously said and follow what I (and Angus) said. Stop changing Delphi version all the time use only the latest you have. -
ICS V9.0 - How to use it with Delphi 7 and Delphi XE Start without errors
FPiette replied to PavelOu's topic in ICS - Internet Component Suite
STOP ATTACHING TEXT FILES AND SCREEN DUMP TO YOUR MESSAGES. Angus and I already told you to do so several times. READ ALL THE MESSAGES AGAIN. I won't help you until you restart from scratch and really follow ALL advises Angus and I gave to you. You are free to do how you fell it, but if you don't follow the rules, you will be alone and won't get any help from me. -
When I created ICS V10, the goal was to use only libraries that are installed in my Ubuntu 20.04 distribution. And it TWSocket is working now.. I started to plus OpenSSL into the code a few months ago but stopped because I had other work to do. You are really welcome to work on ICS V10, but please start with what I already done. I can make the current state available (SVN is not up-to-date because I don't like to push not working code). Let me know.
-
ICS V9.0 - How to use it with Delphi 7 and Delphi XE Start without errors
FPiette replied to PavelOu's topic in ICS - Internet Component Suite
You can put ICS in any base folder you like, but you must keep the directory structure in the zip file (or the subversion repository). Of cours you may dispatch the source where you like but then you must have deeper Delphi knowledge. We cannot help you if you don't copy the errors here (no screen dump please, just copy the plain text errors). Also when you have an error, you should show the code line where it occurs and a few before and a few after so that we understand where it is. I strongly recommend that you install the latest Delphi Community Edition which is free. I don't see any reason to continue with Delphi 7 or Delphi XE Starter. It is very difficult to support such old version that we don't have any more! -
You are in the wrong forum. I already told you 3 or 4 times. I wonder why I still react to your messages! The correct forum is: https://en.delphipraxis.net/forum/37-ics-internet-component-suite/
-
Post a NEW topic in ICS forum. One topic per issue you have. Use a subject appropriate to the issue described in the message. Don't forget to add the EXACT error messages you get. Follow the rules if you need an answer. No one will build your application for you. Only use the source code from https://wiki.overbyte.eu/wiki/index.php/ICS_Download and nowhere else.
-
I told you that I new that. You didn't! You used PPPoW. I don't think Delphi starter prohibit the use of ICS whatever version you use. Probably Delphi starter won't let you install components or add-on. Just don't install ICS components in the IDE but create all component in your code at runtime. Or better, request a free Delphi Community license currently you'll get a Delphi 11 license with "pro" sku features. BTW: PPPoE is probably NOT the way to communicate with your device. Read again my previous post. If you need help with ICS use the proper forum. Read again all my advice I gave you several times today. I'm tired of you refusing to do what I said.
-
I told you on ICS support forum (https://en.delphipraxis.net/forum/37-ics-internet-component-suite) that you must use ICS downloaded from https://wiki.overbyte.eu/wiki/index.php/ICS_Download and nowhere else. The code that is on GitHub is terribly outdated or unofficial publication. I have no idea about what PPPoW is. I know PPPoE but not PPPoW. I doubt that PPPoE is the protocol used by your device. It is more likely a simple TCP connection or use UDP transmission or maybe is a HTTP server. You must find a technical description of the protocol used by your device. Ask the manufacturer.
-
TWSocketServer stop accepting connections
FPiette replied to Eric Fleming Bonilha's topic in ICS - Internet Component Suite
1) My last name is Piette, not Piere. 2) I don't use Google Translate to read your text, 3) I told YOU to use Google Translate to write in English. Your latest message is better but don't contain any actual precise question. And you don't follow what I have asked. And follow what Angus asked. I won't respond here any more. Use "Start new topic" link near the top of this page to start a new message with a proper title and a proper question. Don't attach text files with long logs or more details. Don't write too much details before we ask for it. Go to the point immediately: clearly explain what you are trying to do, what you already done, which Delphi version you are using, which ICS version, what are the error messages you get. I'm really trying hard to help you but you don't read the instructions that I (Or Angus) give you. -
TWSocketServer stop accepting connections
FPiette replied to Eric Fleming Bonilha's topic in ICS - Internet Component Suite
OK, this is now almost correct. Forget about French translation. Use only English because I'm not the only one who can answer. What you will now do is to create a new post (not one more comment here) which clearly explain what you are trying to do, what you already done, which Delphi version you are using, which ICS version, what are the error messages you get (Never a long log file, go to the point) and more... Don't assume we know anything about your problem ! -
TWSocketServer stop accepting connections
FPiette replied to Eric Fleming Bonilha's topic in ICS - Internet Component Suite
Did you write your above message is Czech and then used Google Translate to get it in English? If you did, then Google Translate is very bad with Czech because I don't understand what you said. I'm not an English speaker either. My language is French but usually I understand English. But not your English 😞 I give up. Sorry. -
TWSocketServer stop accepting connections
FPiette replied to Eric Fleming Bonilha's topic in ICS - Internet Component Suite
Sorry, but I don't completely understand what you wrote in quite cryptic language. You should probably write a clear message in your own language and use Google translate to translate it in English. Don't download ICS from GitHUB! Download from https://wiki.overbyte.eu/wiki/index.php/ICS_Download After download, you must install the components. You should NOT have ICS sources code from several different sources: it will cause many troubles. Before installing, make sure you deleted any previous source you have and all dcu and bpl files you may have created. After installation, begin with the samples programs in ICS distribution closest to what you need and make sure they compile without error and are working as expected. Only then start coding your own application using the samples as basis. -
TWSocketServer stop accepting connections
FPiette replied to Eric Fleming Bonilha's topic in ICS - Internet Component Suite
Do you mean there is not unit in the uses clause for TWSocketServer? There is one : OverbyteIcsTWSocketS is used. If this is not your question, please try to better explain which problem you have, which code you are using for both client and server sides. -
Then you can use very basic scrambling technique. For example base64 encoding. Additionally to base64, you can apply a simple XOR of each character. This won't resist to any serious hacker but none of "normal" user, even with good computer knowledge will not pass that kind of scrambling. Base64 routines are available in Delphi RTL and is many software. XOR encryption is so simple, you can write it yourself in a few minutes. Alternatively, you can use stronger cryptography (Lots of libraries for Delphi, one is there : https://github.com/MHumm/DelphiEncryptionCompendium) but then you need to hide the key somewhere (hardcoded in your program or store somewhere). You are almost back to the beginning.
-
Are you looking for strong cryptography against hackers or simple data scrambling so the casual user won't be able to see the data?