Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
780114e3
Commit
780114e3
authored
8 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
extmod/modussl_axtls: Add dummy setblocking() method.
Accepts only value of True.
parent
0b522287
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extmod/modussl_axtls.c
+11
-0
11 additions, 0 deletions
extmod/modussl_axtls.c
with
11 additions
and
0 deletions
extmod/modussl_axtls.c
+
11
−
0
View file @
780114e3
...
...
@@ -122,6 +122,16 @@ STATIC mp_uint_t socket_write(mp_obj_t o_in, const void *buf, mp_uint_t size, in
return
r
;
}
STATIC
mp_obj_t
socket_setblocking
(
mp_obj_t
self_in
,
mp_obj_t
flag_in
)
{
// Currently supports only blocking mode
(
void
)
self_in
;
if
(
!
mp_obj_is_true
(
flag_in
))
{
mp_not_implemented
(
""
);
}
return
mp_const_none
;
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_2
(
socket_setblocking_obj
,
socket_setblocking
);
STATIC
mp_obj_t
socket_close
(
mp_obj_t
self_in
)
{
mp_obj_ssl_socket_t
*
self
=
MP_OBJ_TO_PTR
(
self_in
);
ssl_free
(
self
->
ssl_sock
);
...
...
@@ -139,6 +149,7 @@ STATIC const mp_rom_map_elem_t ussl_socket_locals_dict_table[] = {
{
MP_ROM_QSTR
(
MP_QSTR_readinto
),
MP_ROM_PTR
(
&
mp_stream_readinto_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_readline
),
MP_ROM_PTR
(
&
mp_stream_unbuffered_readline_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_write
),
MP_ROM_PTR
(
&
mp_stream_write_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_setblocking
),
MP_ROM_PTR
(
&
socket_setblocking_obj
)
},
{
MP_ROM_QSTR
(
MP_QSTR_close
),
MP_ROM_PTR
(
&
socket_close_obj
)
},
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment