Skip to main content

A simple package for building servers

Project description

NETSTOCK

Code Example

import Netsock

# Server Side
def Stock():
    try:
        Server = Netstock.TCPserver('localhost', 4000)
        Server.create()
        Server.start_listener()
        while (True):
            Server.accept_all()
            rb = Server.recv_bytes()
            print(rb)
            Server.disconnect_client()
    except Exception as error:
        print(error)

# Client Side
def clientStock():
    Client = Netstock.TCPClient()
    Client.connectToServer('localhost', 4000)
    Client.sendMsg('Hello')

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Netstock-1.0-py3.11.egg (10.3 kB view details)

Uploaded Egg

File details

Details for the file Netstock-1.0-py3.11.egg.

File metadata

  • Download URL: Netstock-1.0-py3.11.egg
  • Upload date:
  • Size: 10.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for Netstock-1.0-py3.11.egg
Algorithm Hash digest
SHA256 b055a2194e55dd797908aae017f7d39475eebb3e9a1d51179f68cbc06df9929a
MD5 035b6b6f854d7599d91a84e772d87aa9
BLAKE2b-256 4957c08f036c9a4dbf9bca4df3184911ad4b8c29a2305c7b90574b34193a98e3

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