Skip to main content
Filter by
Sorted by
Tagged with
1 vote
3 answers
90 views

The lcl-ping library on GitHub has the following definition of an ICMPHeader struct: internal struct ICMPHeader { /// ICMP message type (ECHO_REQUEST) let type: UInt8 let code: UInt8 ...
klaaspieter's user avatar
  • 2,190
0 votes
1 answer
166 views

I am working on an iOS app where one device will act as the server and other devices on the same local network will connect to the server device. I would like to use Bonjour for the clients to ...
justinrschmidt's user avatar
-2 votes
1 answer
217 views

I'm building a server app written in Swift and am trying to deploy it on Linux for the first time. I'm generally following this guide and some others found on the internet. My docker command is: ...
mojuba's user avatar
  • 12.3k
2 votes
0 answers
152 views

For Vapor script that runs on Linux I need to make a request that corresponds to following cURL but as of now, I was unable to find the best solution for this. curl -X GET \ https://endpoint \ --...
cluelessCoder's user avatar
0 votes
0 answers
977 views

I am trying to figure out what about my TLS handshake is failing. I am not exactly sure what this error code means. Can someone provide more context here? 2000-00-00T00:00:00-0000 error [[GRPC-LOGG]] :...
wizeOnes's user avatar
  • 129
0 votes
0 answers
411 views

I have a swift app with the following dependencies: .package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.41.1")), .package(url: "https://...
tweeterist's user avatar
0 votes
1 answer
84 views

My goal is to persist a swift-nio Scheduled instance in a struct named Receiver in an array to potentially use later. It creates the Receiver, stores it in the array and adds the Scheduled instance, ...
cj-'s user avatar
  • 342
0 votes
1 answer
261 views

I've created an iOS app, that connects to an embedded device using swift-nio-ssh. This app has no UI to control the device, as that is supposed to be done with a Watch app, using WatchConnectivity. As ...
szagun's user avatar
  • 311
5 votes
1 answer
2k views

I am using Vapor Swift to send GET / POST requests from the server-side using the below methods: req.application.client.get(<#T##url: URI##URI#>, headers: <#T##HTTPHeaders#>, beforeSend: &...
Wendell's user avatar
  • 546
0 votes
1 answer
307 views

I have a TCP server written in SwiftNIO, based on this documentation. I want my client to be written in python from which I can send multiple JSON strings & can receive similar/different multiple ...
spt025's user avatar
  • 2,324
0 votes
1 answer
763 views

I have an XCTest which works with UI components. I tried to open a server socket within the xctext function using SwiftNIO. I took the echo server example from here. and I simplified, removed the args ...
Tibor Kiss's user avatar
1 vote
1 answer
1k views

I am trying to post a photo to the vapor 4 server. I am sending a Team name as a string and an image as data. struct SendTeam: Content { var name: String var img: Data } I want to upload the ...
mercury's user avatar
  • 2,771
0 votes
1 answer
342 views

I'm working on a COPS (rfc 2748) protocol handler. I need to be able to send a message from the server to the client immediately after a TCP connection is established. I'm not finding any API that ...
Jeff Pedigo's user avatar
1 vote
1 answer
499 views

I am trying to capture a UDP video stream within a (fresh) vapor application running in Xcode. The data is being streamed by ffmpeg and I can successfully view the stream on the target machine using ...
Nick's user avatar
  • 5,205
1 vote
0 answers
367 views

Hi according to this the API is deprecated and considered legacy. It is not specific about when it will be removed. They recommend using Network, though it doesn't have a low-level API for alternative ...
Climax's user avatar
  • 673
5 votes
2 answers
2k views

I'm fairly new to Swift and very new to NIO. I'm adding Swift code to a large project that needs to up/down load a lot of data (GBs) to AWS. To that end, I've imported the GitHub project Soto, which ...
James Bucanek's user avatar
0 votes
1 answer
401 views

I have a very simple service built on a Vapor app. The service consumes data from another family of services. Obviously this is just the sort of application the map methods were made for. All the ...
Jerry's user avatar
  • 3,618
0 votes
1 answer
390 views

I have developed a client and a server using swift nio, I have no problems sending package of all size between 12 and 1000bytes since server sends a pack of 528bytes and when client got it, it is ...
Valerio Schips's user avatar
0 votes
2 answers
737 views

I am trying to use a CircularBuffer<UInt8> from SwiftNIO to store data and once the buffer is almost full dump the contents to a file using an OutputStream. Unfortunately, the OutputStream.write(...
jiko's user avatar
  • 146
0 votes
1 answer
809 views

I am new to WebSocket, choosing between https://github.com/daltoniam/Starscream and SwiftNIO, With SwiftNIO couldn't find clear guidelines, can I Use just SwiftNIO client WebSocket in iOS. and the ...
Chandan Shetty SP's user avatar
1 vote
1 answer
682 views

I am curious into the Passing Weak Cipher through NWProtocolTLS.Options(). Because its working fine in iOS 12 but on iOS 13 Apple they did some changes I guess so it is stopped taking it. One thing ...
iTag's user avatar
  • 421
2 votes
2 answers
2k views

I have an array of values I map to multiple promises that give me each a EventLoopFuture. So I end up with a method that has a variable-size [EventLoopFuture], and I need all the responses to succeed ...
niklassaers's user avatar
  • 8,878
3 votes
2 answers
819 views

In Vapor 4, I'm processing a post request by calling a request on a 3rd party API and returning a value based on the result I get back. The following code results in the error: "Invalid conversion ...
GingerBreadMane's user avatar
1 vote
0 answers
391 views

I am trying to create a digest authentication using swift on top of swiftNIO. At the end I get the following error: The operation couldn’t be completed. (NIO.NIOConnectionError error 1.) Here my way ...
Arnold Schmid's user avatar
0 votes
1 answer
272 views

I am trying to implement digest authentication using async-http-client on top of swiftNIO. Therefore I use a class which uses the HTTPClientResponseDelegate protocol. In this class in the func ...
Arnold Schmid's user avatar