Branch: Tag:

2016-05-21

2016-05-21 17:33:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

SSL.File: Added support for set_buffer_mode().

Adds support for user provided buffers in both directions.

Updates the {read,write,close}_callbacks to the current conventions of
Stdio.File (this includes defaulting the callback_id to this_object()).

Also adds some corresponding tests to the testsuite.

386:    "gauge": "predef::System":3, "predef::gethrvtime":1,    "gauge()": "predef::gethrvtime":1,    "get_auth_url()": "predef::Web.Auth.OAuth2.Base.request_access_token":2, "predef::Web.Auth.OAuth2.Client.request_access_token":1, -  "get_buffer_mode()": "predef::Stdio.File.set_buffer_mode":1, +  "get_buffer_mode()": "predef::SSL.File.set_buffer_mode":1, "predef::Stdio.File.set_buffer_mode":1,    "get_codec_params()": "predef::_Ffmpeg.ffmpeg.set_codec_param":1,    "get_elements_by_tag_name": "predef::Parser.XML.SloppyDOM.Document.get_elements":1, "predef::Parser.XML.SloppyDOM.NodeWithChildElements.get_elements":1,    "get_parsed_url": "predef::Protocols.LDAP.parse_ldap_url":1,
1418:   "predef::SSL.File.internal_poll": "real_backend"   "predef::SSL.File.query_connection": "SSL.connection"   "predef::SSL.File.schedule_poll": "real_backend" + "predef::SSL.File.set_buffer_mode": "get_buffer_mode()"   "predef::SSL.File.shutdown": "System.EPIPE"   "predef::SSL.Port.accept": "accept_queue"   "predef::SSL.ServerConnection.send_renegotiate": "hello_request"