aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/websockets.py
Commit message (Collapse)AuthorAgeFilesLines
* websockets: nicer human readableAldo Cortesi2015-05-311-3/+5
|
* cleanup code with autopep8Thomas Kriechbaumer2015-05-271-41/+46
| | | | run the following command: $ autopep8 -i -r -a -a .
* Zap outdated commentAldo Cortesi2015-05-161-3/+1
|
* Add tcp.Reader.safe_read, use it in socks and websocketsAldo Cortesi2015-05-051-8/+8
| | | | | | safe_read is guaranteed to raise or return a byte string of the requested length. It's particularly useful for implementing binary protocols.
* websockets: more flexible masking interface.Aldo Cortesi2015-05-011-3/+8
|
* websockets: A progressive masker.Aldo Cortesi2015-05-011-14/+18
|
* websockets: more compact and legible human_readableAldo Cortesi2015-04-301-21/+17
|
* Add a tiny utility class for keeping bi-directional mappings.Aldo Cortesi2015-04-301-6/+19
| | | | Use it in websocket and socks.
* websockets: nicer frame constructionAldo Cortesi2015-04-241-15/+23
| | | | | | - Resolve unspecified values on instantiation - Add a check for masking key length - Smarter resolution for masking_key and mask values. Do the right thing unless told not to.
* websockets: include all header values in frame roundtripAldo Cortesi2015-04-241-12/+15
|
* websockets: remove validationAldo Cortesi2015-04-241-20/+4
| | | | | | | We don't really need this any more. The interface is much less error prone because bit flags are no longer integers, we have a range check on opcode on header instantiation, and we've deferred length code calculation and so forth into the byte render methods.
* websocket: interface refactoringAldo Cortesi2015-04-241-160/+143
| | | | | | | - Separate out FrameHeader. We need to deal with this separately in many circumstances. - Simpler equality scheme. - Bits are now specified by truthiness - we don't care about the integer value. This means lots of validation is not needed any more.
* websockets: refactor to avoid rundantly specifying payloads and payload lengthsAldo Cortesi2015-04-241-37/+23
|
* websockets: extract frame header creation into a functionAldo Cortesi2015-04-241-120/+143
|
* websockets: handshake checks only take headersAldo Cortesi2015-04-231-6/+6
|
* websockets: (very) slightly nicer is_valid constraintsAldo Cortesi2015-04-211-5/+3
|
* websockets: constants, variable names, refactoringAldo Cortesi2015-04-211-35/+40
|
* Whitespace, interface simplificationAldo Cortesi2015-04-211-15/+2
| | | | | - safe_tobytes doesn't buy us much - move masking key generation inline
* websockets: refactor to use http and header functions in http.pyAldo Cortesi2015-04-211-73/+35
|
* Whitespace, indentation, nounce -> nonceAldo Cortesi2015-04-211-25/+25
|
* fixing test coverage, adding to_file/from_file reader writes to match socks.pyChandler Abraham2015-04-191-28/+34
|
* Websockets: reorganiseAldo Cortesi2015-04-201-0/+410
- websockets.py to top-level - implementations into test suite