summaryrefslogtreecommitdiff
path: root/unix/modsocket.c
AgeCommit message (Collapse)Author
2014-05-25Change const byte* to const char* where sensible.Damien George
This removes need for some casts (at least, more than it adds need for new casts!).
2014-05-24modsocket: 64-bit cleanness.Paul Sokolovsky
2014-05-24unix modsocket: Make .makefile() method more compliant.Paul Sokolovsky
.makefile() should allow to specify which stream time to create - byte or text.
2014-05-21Merge pull request #607 from Anton-2/osx-clangDamien George
Allow compilation of unix port under clang on OS X
2014-05-13py, unix: Add copyright for modules I worked closely on.Paul Sokolovsky
2014-05-12Fix some unused variables, and silence a clang warning about initialization ↵Antonin ENFRUN
override in vmentrytable.h
2014-05-07unix modsocket: Add comments re: recv() vs read(), etc. semantics.Paul Sokolovsky
2014-05-03Add license header to (almost) all files.Damien George
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
2014-05-02unix,stmhal: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky
2014-04-26Add ARRAY_SIZE macro, and use it where possible.Damien George
2014-04-26modsocket: Make .send() support arbitrary objects with buffer interface.Paul Sokolovsky
This is CPython-compliant (except that CPython doesn't support buffer protocol for str).
2014-04-22unix: Workaround MP_OBJ_NEW_SMALL_INT() 64-bit issues.Paul Sokolovsky
2014-04-22modsocket: Clean up OSError-like exception a bit.Paul Sokolovsky
Some BSD socket functions don't return error numbers in errno namespace, but rather in other error namespaces. CPython resolves this by using OSError subclasses for them. We don't do that so far, so there's ambiguity here.
2014-04-22unix: OSError's args[0] should be errno numeric value.Paul Sokolovsky
Well, Python3 also defines an attribute for that, but that's bloat.
2014-04-20modsocket: Add setblocking() method.Paul Sokolovsky
2014-04-18py: Allow to pass buffer protocol flags to get_buffer helper funcs.Damien George
2014-04-18unix: Update to use new buffer protocol interface with typecode.Damien George
2014-04-17unix modsocket: Convert to static module structures.Paul Sokolovsky
2014-04-09py: Add mp_get_buffer(), mp_get_buffer_raise() convenience functions to API.Paul Sokolovsky
2014-04-05py: Replace stream_p with *stream_p in mp_obj_type_t.Damien George
This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
2014-04-05py: Change nlr_jump to nlr_raise, to aid in debugging.Damien George
This does not affect code size or performance when debugging turned off. To address issue #420.
2014-04-04unix: Rename module sources per latest naming conventions (mod*.c).Paul Sokolovsky