Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EasyIPCLarge-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

EasyIPCLarge-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file EasyIPCLarge-1.0.0.tar.gz.

File metadata

  • Download URL: EasyIPCLarge-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for EasyIPCLarge-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5c65ca5cc4875c38ff5c74a07f0dca21a14c21890f04e67ea2a40949261d6f0c
MD5 e7036a9e1a60afe2316901e36bd0a3dd
BLAKE2b-256 74a7b48e68e9e266a4fce103d1676a44754c2c24caebe5a516b73a02f463ba51

See more details on using hashes here.

File details

Details for the file EasyIPCLarge-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: EasyIPCLarge-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for EasyIPCLarge-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 685d8aba0685bc171f8753a2952144aa7d561306812b418d5f42618b25a016e2
MD5 10b3c7ec5b97925e7eae34351dca6581
BLAKE2b-256 87e9d2ef2b01f2f61d462242d932b8168bab346fe42a05ca81f43f321e094031

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page