Title: Write bindings for libssh2_channel_direct_streamlocal · Issue #40 · ParallelSSH/ssh2-python · GitHub
Open Graph Title: Write bindings for libssh2_channel_direct_streamlocal · Issue #40 · ParallelSSH/ssh2-python
X Title: Write bindings for libssh2_channel_direct_streamlocal · Issue #40 · ParallelSSH/ssh2-python
Description: I noticed this has been added recently added to the libssh2 library and was wondering if it could be wrapped and accessible through this as well. Here is the pull request to show the changes in libssh2: libssh2/libssh2#216 I have never w...
Open Graph Description: I noticed this has been added recently added to the libssh2 library and was wondering if it could be wrapped and accessible through this as well. Here is the pull request to show the changes in lib...
X Description: I noticed this has been added recently added to the libssh2 library and was wondering if it could be wrapped and accessible through this as well. Here is the pull request to show the changes in lib...
Opengraph URL: https://github.com/ParallelSSH/ssh2-python/issues/40
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Write bindings for libssh2_channel_direct_streamlocal","articleBody":"\r\nI noticed this has been added recently added to the libssh2 library and was wondering if it could be wrapped and accessible through this as well.\r\n\r\nHere is the pull request to show the changes in libssh2: https://github.com/libssh2/libssh2/pull/216\r\n\r\nI have never worked with cpython before, otherwise i would make a pull request with the changes myself but i imagine the code in session.pyx would look something like this:\r\n\r\n```\r\ndef channel_direct_streamlocal(self, socket_path not None, shost not None, int sport):\r\n cdef c_ssh2.LIBSSH2_CHANNEL *channel\r\n cdef bytes b_shost = to_bytes(shost)\r\n cdef bytes b_socket_path = to_bytes(socket_path)\r\n cdef char *_shost = b_shost\r\n cdef char *_socket_path = b_socket_path\r\n with nogil:\r\n channel = c_ssh2.libssh2_channel_direct_streamlocal(\r\n self._session, _socket_path, _shost, sport)\r\n if channel is NULL:\r\n return handle_error_codes(c_ssh2.libssh2_session_last_errno(\r\n self._session))\r\n return PyChannel(channel, self)\r\n```\r\n\r\nThanks\r\n","author":{"url":"https://github.com/imgurbot12","@type":"Person","name":"imgurbot12"},"datePublished":"2018-09-27T23:49:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/40/ssh2-python/issues/40"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:118fffbd-d7b3-bb4a-231a-a4caf7394c05 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA96:36419E:1807614:1F47132:696B2A5C |
| html-safe-nonce | a4ff18f941e00e63447135a4bfa961b2b9728f83d2b4b6aee60a13c6fe83edd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTk2OjM2NDE5RToxODA3NjE0OjFGNDcxMzI6Njk2QjJBNUMiLCJ2aXNpdG9yX2lkIjoiNTU1OTgwNTYyOTk1MDUzNjI4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 278fe013b8ba76ead6e8bd278abfa16f3e6502f463bfefbf100d2202addda96c |
| hovercard-subject-tag | issue:364692296 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ParallelSSH/ssh2-python/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41dfb6b7a4785b8a67344098e7fa939b64d0c14857aecbad5a2eb0eb6b64d8a4/ParallelSSH/ssh2-python/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41dfb6b7a4785b8a67344098e7fa939b64d0c14857aecbad5a2eb0eb6b64d8a4/ParallelSSH/ssh2-python/issues/40 |
| og:image:alt | I noticed this has been added recently added to the libssh2 library and was wondering if it could be wrapped and accessible through this as well. Here is the pull request to show the changes in lib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imgurbot12 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/ParallelSSH/ssh2-python git https://github.com/ParallelSSH/ssh2-python.git |
| octolytics-dimension-user_id | 22918200 |
| octolytics-dimension-user_login | ParallelSSH |
| octolytics-dimension-repository_id | 98586974 |
| octolytics-dimension-repository_nwo | ParallelSSH/ssh2-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 98586974 |
| octolytics-dimension-repository_network_root_nwo | ParallelSSH/ssh2-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width