atomicshop 2.18.16__py3-none-any.whl → 2.18.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/wrappers/socketw/receiver.py +5 -2
- {atomicshop-2.18.16.dist-info → atomicshop-2.18.18.dist-info}/METADATA +1 -1
- {atomicshop-2.18.16.dist-info → atomicshop-2.18.18.dist-info}/RECORD +7 -7
- {atomicshop-2.18.16.dist-info → atomicshop-2.18.18.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.18.16.dist-info → atomicshop-2.18.18.dist-info}/WHEEL +0 -0
- {atomicshop-2.18.16.dist-info → atomicshop-2.18.18.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
import socket
|
|
3
3
|
import ssl
|
|
4
|
+
import time
|
|
5
|
+
|
|
4
6
|
import select
|
|
5
7
|
from pathlib import Path
|
|
6
8
|
|
|
@@ -21,7 +23,7 @@ def peek_first_bytes(client_socket, bytes_amount: int = 1) -> bytes:
|
|
|
21
23
|
return client_socket.recv(bytes_amount, socket.MSG_PEEK)
|
|
22
24
|
|
|
23
25
|
|
|
24
|
-
def is_socket_ready_for_read(socket_instance, timeout:
|
|
26
|
+
def is_socket_ready_for_read(socket_instance, timeout: float = 0) -> bool:
|
|
25
27
|
"""
|
|
26
28
|
Check if socket is ready for read.
|
|
27
29
|
|
|
@@ -122,7 +124,8 @@ class Receiver:
|
|
|
122
124
|
first_run: bool = True
|
|
123
125
|
while True:
|
|
124
126
|
# Check if there is data to be read from the socket.
|
|
125
|
-
is_there_data: bool = is_socket_ready_for_read(self.ssl_socket, timeout=0)
|
|
127
|
+
is_there_data: bool = is_socket_ready_for_read(self.ssl_socket, timeout=0.5)
|
|
128
|
+
|
|
126
129
|
# noinspection PyTypeChecker
|
|
127
130
|
if is_there_data or first_run:
|
|
128
131
|
first_run = False
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=eQr9Fof-xo4eR9O81aZCwDxsSgyunNqvIrJeVUh7VjA,124
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -309,7 +309,7 @@ atomicshop/wrappers/socketw/creator.py,sha256=aSwfN_IwXXf4Hob35vHXUxD_OPeshZcRDZ
|
|
|
309
309
|
atomicshop/wrappers/socketw/dns_server.py,sha256=RklzINNuoMQn4PGGQEI5hiAldprbVwwvikY6u9X-jTY,49067
|
|
310
310
|
atomicshop/wrappers/socketw/exception_wrapper.py,sha256=B-X5SHLSUIWToihH2MKnOB1F4A81_X0DpLLfnYKYbEc,7067
|
|
311
311
|
atomicshop/wrappers/socketw/get_process.py,sha256=aJC-_qFUv3NgWCSUzDI72E4z8_-VTZE9NVZ0CwUoNlM,5698
|
|
312
|
-
atomicshop/wrappers/socketw/receiver.py,sha256=
|
|
312
|
+
atomicshop/wrappers/socketw/receiver.py,sha256=O1h7nhJIRD4KDQxSe6JvYwA-vmKeeP3ONmxF8x6C97M,8207
|
|
313
313
|
atomicshop/wrappers/socketw/sender.py,sha256=aX_K8l_rHjd5AWb8bi5mt8-YTkMYVRDB6DnPqK_XDUE,4754
|
|
314
314
|
atomicshop/wrappers/socketw/sni.py,sha256=T9PXROiTYYxrd_7X4Hoj9hoNPXXTQpa2HdvmBJJIoeA,17607
|
|
315
315
|
atomicshop/wrappers/socketw/socket_client.py,sha256=oa3GwS4OPgokrJE5_Oc4-5_wlXHxSH9J5f2DKebms8k,22035
|
|
@@ -320,8 +320,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=fgMzDXI0cybwUEqAxprRmY3lqbh
|
|
|
320
320
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
321
321
|
atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
|
|
322
322
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
|
|
323
|
-
atomicshop-2.18.
|
|
324
|
-
atomicshop-2.18.
|
|
325
|
-
atomicshop-2.18.
|
|
326
|
-
atomicshop-2.18.
|
|
327
|
-
atomicshop-2.18.
|
|
323
|
+
atomicshop-2.18.18.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
324
|
+
atomicshop-2.18.18.dist-info/METADATA,sha256=8vRMxwI466-ZxRsHeJJLik4TemN7DUHdwI1gf2JmBd0,10577
|
|
325
|
+
atomicshop-2.18.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
326
|
+
atomicshop-2.18.18.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
327
|
+
atomicshop-2.18.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|