You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ jw-docker-swift-master swift run
docker.io/swiftlang/swift:nightly-master-bionic
/Users/johannes/devel/URLSessionBidiStreaming/Sources/URLSessionBidiStreaming/main.swift:59:16: error: type 'Stream' has no member 'getBoundStreams'
Stream.getBoundStreams(withBufferSize: 4096,
~~~~~~ ^~~~~~~~~~~~~~~
it seems like Streams.getBoundStreams isn't available on Linux.
The text was updated successfully, but these errors were encountered:
Indeed, I spotted this just recently as well. It's kind of a showstopper for one of my projects which is based on a generic stream abstraction (bridging to different transport means like CoreBluetooth, ExternalAccessory, TTY, TCP, etc.).
I first thought it was just the convenience method for gathering the stream pair missing on Linux, but as a matter of fact, the whole `CFSocketStream` infrastructure is absent. I need to have a TCP stream socket pair on Linux – do you know of any existing projects (other than Swift-NIO, which is great in its own right, but too much of a hammer for this very nail) or shall we cooperate on a small socket stream implementation for Posix sockets?
Environment
Additional Detail from JIRA
md5: 7b395a96600be27ba3bccd448b599c4c
Issue Description:
I'm really not an expert in URLSession but I wanted to implement bidirectional streaming with it and I believe I require
Stream.getBoundStreams
for that (https://developer.apple.com/documentation/foundation/url_loading_system/uploading_streams_of_data).But:
it seems like
Streams.getBoundStreams
isn't available on Linux.The text was updated successfully, but these errors were encountered: