I noticed that CAsyncSocket is used instead of CSocket as a base class.
Is there a specific reason for doing this?
Would it also work if CSocket was used as a base class?
CAsyncSocket vs. CSocket
Moderator: Project members
In contrast to CAsyncSocket, CSocket works in synchronous mode. This means on any call to one of the CSocket methods, CSocket blocks the calling thread until all requested data has been read/sent.
However, since FileZilla should stay responsive during transfers, async sockets are used.
Also, using CSocket for FZ would not work because CSocket does not support socket events.
However, since FileZilla should stay responsive during transfers, async sockets are used.
Also, using CSocket for FZ would not work because CSocket does not support socket events.