Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
347b3a3d
Commit
347b3a3d
authored
May 31, 2014
by
Paul Sokolovsky
Browse files
modsocket: Add some comments on intended usage/API design of module.
parent
50b08c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/modsocket.c
View file @
347b3a3d
...
...
@@ -50,6 +50,21 @@
#include "stream.h"
#include "builtin.h"
/*
The idea of this module is to implement reasonable minimum of
socket-related functions to write typical clients and servers.
The module named "microsocket" on purpose, to allow to make
Python-level module more (or fully) compatible with CPython
"socket", e.g.:
---- socket.py ----
from microsocket import *
from socket_more_funcs import *
from socket_more_funcs2 import *
-------------------
I.e. this module should stay lean, and more functions (if needed)
should be add to seperate modules (C or Python level).
*/
#define MICROPY_SOCKET_EXTRA (0)
typedef
struct
_mp_obj_socket_t
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment