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-0.9.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for EasyIPCLarge-0.9.0.tar.gz
Algorithm Hash digest
SHA256 a8913bc51ef91ce364cf225befb4093f449f8e644ecf80cef898dffacba9fefd
MD5 ae58274f65c6127810b80e94f40109b7
BLAKE2b-256 e411fcb71dc4c0146fd54530437a662730b7e87887def4f79832835acd45ecb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: EasyIPCLarge-0.9.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.9.13

File hashes

Hashes for EasyIPCLarge-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba30992d81cee690cb102665ee3fb5612be9c385838c5035f564a2ebd96e57de
MD5 de828d85365597b923d8fa33cb722df7
BLAKE2b-256 54fb1226aa5d00e8e16b2be0956dc5ba25bad563336decfe71c67ed350484900

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