!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/usr/share/doc/libmail-dkim-perl/   drwxr-xr-x
Free 29.22 GB of 117.98 GB (24.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     async_dns.txt (1.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Strategies for Asynchronous DNS
-------------------------------

Principles

1. As soon as we can tell what to query, initiate the query.

2. Design things so that the results of the query aren't needed
   until later in the process.

Three different strategies?

 A. Have the query_async() call return a token that can be used by
    a later function to get the actual result of the query.
	The "token" can actually be a subroutine that when called,
	produces the result of the query.

 B. Have the query_async() call not return anything, but the result
    will be cached so a later call can get the result of the query
    by passing in the same query parameters.

 C. Have the query_async() call take an extra parameter, a reference
    to a callback function... i.e. a function that will be called
    whenever the query finishes, with the result of the query.

I think I prefer strategy A to B; it's more standard of a practice.
One trick about A is knowing where to store the "token".
I'm not sure yet about A vs C.

C fits in more naturally with coroutines and continuations.
Might make the code more simple, but I need another function that
will block until the query is finished.

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.004 ]--