A library for high-speed transfer of large data between processes
Project description
Server example.
Start the server:
from EasyIPCLarge.MemoryServer import MemoryServer
srv = MemoryServer(port=1234)
while True:
seq, delayUS, b = srv.GetData()
if b is not None:
print("Received: {:5d}, delay({}us), bytes({})".format(seq, delayUS,
len(b)))
Stop the server:
srv.Stop()
Client example.
Client send data:
from EasyIPCLarge.MemoryClient import MemoryClient
import time
b = bytes(4*1024*1024)
cli = MemoryClient(port=1234)
cli.SharedMemoryOpen(64*1024*1024)
for seq in range(16):
while True:
r = cli.SharedMemorySend(seq, b)
if r:
print("Client: sent {}".format(seq))
break
else:
print("Client: fail {}".format(seq))
while not cli.SharedMemoryEmpty():
time.sleep(0.01)
cli.SharedMemoryClose()
del cli
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
EasyIPCLarge-0.8.0.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file EasyIPCLarge-0.8.0.tar.gz.
File metadata
- Download URL: EasyIPCLarge-0.8.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b47fbe5d25306219f9ed76e2e40b181e64be6c2347b05919d9c3b386b7b496b
|
|
| MD5 |
30bc32f2c9ebbd218ece2404ea02e77b
|
|
| BLAKE2b-256 |
9419ae49db59ce07cb9a0363a2ccd6a275fd047e84aea85b8064145af935eb96
|
File details
Details for the file EasyIPCLarge-0.8.0-py3-none-any.whl.
File metadata
- Download URL: EasyIPCLarge-0.8.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3b25345db115af3bf76f66b60c6654eb4c9679f555ca8a817dcc95e3d70c574
|
|
| MD5 |
77918095a86ad9e3d9b5306a2ffc1536
|
|
| BLAKE2b-256 |
367ce517a64f11201a2cbe91724fbcbee4d2023028bb9a6f30878c1ffeb383a5
|