summaryrefslogtreecommitdiff
path: root/examples/unix
AgeCommit message (Collapse)Author
2023-09-29examples/unix/machine_bios.py: Fix typo.Thomas
Signed-off-by: Thomas <th.acker.0302@gmail.com>
2023-06-08all: Replace all uses of umodule in Python code.Jim Mussared
Applies to drivers/examples/extmod/port-modules/tools. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2018-10-23examples/unix/ffi_example: Clean up and update the ffi example.Paul Sokolovsky
1. Use uctypes.bytearray_at(). Implementation of the "ffi" module predates that of "uctypes", so initially some convenience functions to access memory were added to ffi. Later, they landed in uctypes (which follows CPython's ctype module). So, replace undocumented experimental functions from ffi to documented ones from uctypes. 2. Use more suitable type codes for arguments (e.g. "P" (const void*) instead of "p" (void*). 3. Some better var naming. 4. Clarify some messages printed by the example.
2016-07-31tests/machine_mem.py: Too non-portable, rework as an example for unix port.Paul Sokolovsky
2016-06-17examples/unix/ffi_example.py: Remove TODO, make output more clear.Paul Sokolovsky
2016-06-17examples/unix/ffi_example.py: Update for current "ffi" module API.Paul Sokolovsky
2016-04-01examples: http_client.py, http_server.py aren't just unix, move to network/.Paul Sokolovsky
2016-01-09examples/unix: Rename example be importable as modules.Paul Sokolovsky
Replace hyphens with undescores in modules.
2014-10-09unix: Rename "microsocket" module to "usocket".Paul Sokolovsky
Per new conventions, we'd like to consistently use "u*" naming conventions for modules which don't offer complete CPython compatibility, while offer subset or similar API.
2014-10-09examples: Rename unix socket examples to have more precise naming (http).Paul Sokolovsky
2014-02-14ffi: Implement ffivar.get()/set() methods.Paul Sokolovsky
Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
2014-02-08Rename "rawsocket" module to "microsocket".Paul Sokolovsky
It's no longer intended to provide just "raw" socket interface, may include some convenience methods for compatibility with CPython socket - but anyway just minimal set required to deal with socket client and servers, not wider network functionality.
2014-01-29Add FFI module example.Paul Sokolovsky
2014-01-26sock-server.py: Use SO_REUSEADDR to avoid errors on quick restart.Paul Sokolovsky
2014-01-20socket-client, socket-server examples now run on both Micro- and C-Python.Paul Sokolovsky
2014-01-19Add socket examples (simple HTTP client and server).Paul Sokolovsky