realpython / realpython/materials

Custom read handler for sockets demo for appserver.py and appclient.py (libserver, libclient)

Open
#240 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
5.2k
Forks
5.3k
Avg merge
4d 10h
Merged PRs (30d)
10

Description

ℹ️
https://github.com/realpython/materials/blob/master/python-sockets-tutorial/app-server.py
https://github.com/realpython/materials/blob/master/python-sockets-tutorial/app-client.py
https://github.com/realpython/materials/blob/master/python-sockets-tutorial/libserver.py
https://github.com/realpython/materials/blob/master/python-sockets-tutorial/libclient.py

You can report issues and problems here, but we typically won't be able to provide 1:1 support outside the channels listed above.

Describe the bug
I am trying to use the appclient and appserver demo from the above sockets tutorial and want to process a custom function using the data read from the server read or client read.

To Reproduce
NA

Expected behavior
Able to run a custom function after a read is done in server or client using the data read.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] NA
  • OS: [e.g. iOS8.1] Linux, Windows
  • Browser [e.g. stock browser, safari] NA
  • Version [e.g. 22] NA

Additional context
NA

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read app-server.py and app-client.py alongside libserver.py and libclient.py to understand how socket data is currently read. Define and document the intended custom read-handler behavior for both server and client, with completion demonstrated by processing the data after a read.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.