Skip to content

Commit

Permalink
Minor Update
Browse files Browse the repository at this point in the history
  • Loading branch information
consuelita committed Sep 27, 2018
1 parent 1bd99f3 commit 941a511
Show file tree
Hide file tree
Showing 13 changed files with 1,421 additions and 1,456 deletions.
Binary file modified .DS_Store
Binary file not shown.
31 changes: 2 additions & 29 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,6 @@
"version": "0.0.6"
}
},
{
"package": "swift-nio",
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "5d8148c8b45dfb449276557f22120694567dd1d2",
"version": "1.9.5"
}
},
{
"package": "swift-nio-zlib-support",
"repositoryURL": "https://github.com/apple/swift-nio-zlib-support.git",
"state": {
"branch": null,
"revision": "37760e9a52030bb9011972c5213c3350fa9d41fd",
"version": "1.0.0"
}
},
{
"package": "Sodium",
"repositoryURL": "https://github.com/OperatorFoundation/swift-sodium",
Expand All @@ -100,22 +82,13 @@
"version": "0.0.3"
}
},
{
"package": "SwiftSocket",
"repositoryURL": "https://github.com/OperatorFoundation/SwiftSocket.git",
"state": {
"branch": null,
"revision": "24232dcbd0a7bb0db35a7b96d75ceac9a88ce670",
"version": "2.0.3"
}
},
{
"package": "Transport",
"repositoryURL": "https://github.com/OperatorFoundation/Transport.git",
"state": {
"branch": null,
"revision": "e4609715074ab941db8dd617f940ccf63107dc3c",
"version": "0.0.19"
"revision": "73d252ccabc7f9a3b7855225f8bf33a3eb762dca",
"version": "0.0.21"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/OperatorFoundation/ProteanSwift", from: "0.0.1"),
.package(url: "https://github.com/OperatorFoundation/Transport.git", from: "0.0.19"),
.package(url: "https://github.com/OperatorFoundation/ProteanSwift", from: "0.0.6"),
.package(url: "https://github.com/OperatorFoundation/Transport.git", from: "0.0.21"),
.package(url: "https://github.com/OperatorFoundation/swift-sodium", from: "0.6.8"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "0.11.0"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "0.12.0"),
.package(url: "https://github.com/Bouke/HKDF.git", from: "3.0.1"),
.package(url: "https://github.com/OperatorFoundation/Elligator.git", from: "0.1.0"),
.package(url: "https://github.com/OperatorFoundation/SwiftQueue.git", from: "0.0.3")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module celligator {
umbrella "/Users/Lita/Documents/Documents - Adelita’s MacBook Pro/Dev/Shapeshifter-Swift-Transports/.build/checkouts/Elligator.git-1685432175989269477/Sources/celligator/include"
umbrella "/Users/Lita/Documents/Documents - Adelita’s MacBook Pro/Dev/Shapeshifter-Swift-Transports/.build/checkouts/Elligator.git-8008843471106168896/Sources/celligator/include"
export *
}
2,770 changes: 1,381 additions & 1,389 deletions Shapeshifter-Swift-Transports.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::ExampleTransports"
BuildableName = "ExampleTransports.framework"
BlueprintName = "ExampleTransports"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::Wisp"
BuildableName = "Wisp.framework"
BlueprintName = "Wisp"
ReferencedContainer = "container:Shapeshifter-Swift-Transports.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -28,9 +28,9 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::Protean"
BuildableName = "Protean.framework"
BlueprintName = "Protean"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::ExampleTransports"
BuildableName = "ExampleTransports.framework"
BlueprintName = "ExampleTransports"
ReferencedContainer = "container:Shapeshifter-Swift-Transports.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -42,9 +42,9 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::Wisp"
BuildableName = "Wisp.framework"
BlueprintName = "Wisp"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::Protean"
BuildableName = "Protean.framework"
BlueprintName = "Protean"
ReferencedContainer = "container:Shapeshifter-Swift-Transports.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -60,29 +60,29 @@
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::ExampleTransportsTests"
BuildableName = "ExampleTransportsTests.xctest"
BlueprintName = "ExampleTransportsTests"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::WispTests"
BuildableName = "WispTests.xctest"
BlueprintName = "WispTests"
ReferencedContainer = "container:Shapeshifter-Swift-Transports.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::WispTests"
BuildableName = "WispTests.xctest"
BlueprintName = "WispTests"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::ProteanTests"
BuildableName = "ProteanTests.xctest"
BlueprintName = "ProteanTests"
ReferencedContainer = "container:Shapeshifter-Swift-Transports.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::ProteanTests"
BuildableName = "ProteanTests.xctest"
BlueprintName = "ProteanTests"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::ExampleTransportsTests"
BuildableName = "ExampleTransportsTests.xctest"
BlueprintName = "ExampleTransportsTests"
ReferencedContainer = "container:Shapeshifter-Swift-Transports.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -103,9 +103,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::ExampleTransports"
BuildableName = "ExampleTransports.framework"
BlueprintName = "ExampleTransports"
BlueprintIdentifier = "Shapeshifter-Swift-Transports::Wisp"
BuildableName = "Wisp.framework"
BlueprintName = "Wisp"
ReferencedContainer = "container:Shapeshifter-Swift-Transports.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
2 changes: 1 addition & 1 deletion Sources/ExampleTransports/PassthroughConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ open class PassthroughConnection: Connection
using parameters: NWParameters)
{
let connectionFactory = NetworkConnectionFactory(host: host, port: port)
guard let newConnection = connectionFactory.connect(parameters)
guard let newConnection = connectionFactory.connect(using: parameters)
else
{
return nil
Expand Down
2 changes: 1 addition & 1 deletion Sources/ExampleTransports/Rot13Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ open class Rot13Connection: Connection
using parameters: NWParameters)
{
let connectionFactory = NetworkConnectionFactory(host: host, port: port)
guard let newConnection = connectionFactory.connect(parameters)
guard let newConnection = connectionFactory.connect(using: parameters)
else
{
return nil
Expand Down
2 changes: 1 addition & 1 deletion Sources/Protean/ProteanConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ open class ProteanConnection: Connection
}

let connectionFactory = NetworkConnectionFactory(host: host, port: port)
guard let newConnection = connectionFactory.connect(.udp)
guard let newConnection = connectionFactory.connect(using: .udp)
else
{
return nil
Expand Down
2 changes: 1 addition & 1 deletion Sources/Wisp/WispConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class WispConnection: Connection
self.iatMode = iatMode

let connectionFactory = NetworkConnectionFactory(host: host, port: port)
guard let newConnection = connectionFactory.connect(parameters)
guard let newConnection = connectionFactory.connect(using: parameters)
else
{
return nil
Expand Down
2 changes: 1 addition & 1 deletion Sources/Wisp/WispConnectionFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ open class WispConnectionFactory: ConnectionFactory
self.iatMode = iatMode
}

public func connect(_ using: NWParameters) -> Connection?
public func connect(using: NWParameters) -> Connection?
{
if let currentConnection = connection
{
Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions Tests/WispTests/WispTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Shapeshifter_WispTests: XCTestCase
let read = expectation(description: "Read data from the server.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let connectionFactory = NetworkConnectionFactory(host: host, port: port)
let maybeConnection = connectionFactory.connect(.udp)
let maybeConnection = connectionFactory.connect(using: .udp)

XCTAssertNotNil(maybeConnection)

Expand Down Expand Up @@ -305,7 +305,7 @@ class Shapeshifter_WispTests: XCTestCase
let connected = expectation(description: "Connected to server.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let connectionFactory = NetworkConnectionFactory(host: host, port: port)
var maybeConnection = connectionFactory.connect(.tcp)
var maybeConnection = connectionFactory.connect(using: .tcp)
XCTAssertNotNil(maybeConnection)

maybeConnection!.stateUpdateHandler =
Expand Down Expand Up @@ -364,7 +364,7 @@ class Shapeshifter_WispTests: XCTestCase
let wrote = expectation(description: "Wrote data to server.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let connectionFactory = NetworkConnectionFactory(host: host, port: port)
var maybeConnection = connectionFactory.connect(.tcp)
var maybeConnection = connectionFactory.connect(using: .tcp)
XCTAssertNotNil(maybeConnection)

maybeConnection?.stateUpdateHandler =
Expand Down Expand Up @@ -446,7 +446,7 @@ class Shapeshifter_WispTests: XCTestCase
let read = expectation(description: "Read data from the server.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let connectionFactory = NetworkConnectionFactory(host: host, port: port)
let maybeConnection = connectionFactory.connect(.tcp)
let maybeConnection = connectionFactory.connect(using: .tcp)

XCTAssertNotNil(maybeConnection)

Expand Down Expand Up @@ -568,7 +568,7 @@ class Shapeshifter_WispTests: XCTestCase
let wroteTwice = expectation(description: "Wrote data to the server a second time.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let connectionFactory = NetworkConnectionFactory(host: host, port: port)
let maybeConnection = connectionFactory.connect(.tcp)
let maybeConnection = connectionFactory.connect(using: .tcp)

XCTAssertNotNil(maybeConnection)

Expand Down Expand Up @@ -679,7 +679,7 @@ class Shapeshifter_WispTests: XCTestCase
let connected = expectation(description: "Connected to server.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let wispFactory = WispConnectionFactory(host: host, port: port, cert: certString, iatMode: false)
var maybeConnection = wispFactory.connect(.tcp)
var maybeConnection = wispFactory.connect(using: .tcp)
XCTAssertNotNil(maybeConnection)

maybeConnection?.stateUpdateHandler =
Expand Down Expand Up @@ -742,7 +742,7 @@ class Shapeshifter_WispTests: XCTestCase
let wrote = expectation(description: "Wrote data to server.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let wispFactory = WispConnectionFactory(host: host, port: port, cert: certString, iatMode: false)
let maybeConnection = wispFactory.connect(.tcp)
let maybeConnection = wispFactory.connect(using: .tcp)
XCTAssertNotNil(maybeConnection)

guard var connection = maybeConnection
Expand Down Expand Up @@ -828,7 +828,7 @@ class Shapeshifter_WispTests: XCTestCase
let read = expectation(description: "Read data from the server.")
let host = NWEndpoint.Host.ipv4(ipv4Address)
let wispFactory = WispConnectionFactory(host: host, port: port, cert: certString, iatMode: false)
let maybeConnection = wispFactory.connect(.tcp)
let maybeConnection = wispFactory.connect(using: .tcp)
XCTAssertNotNil(maybeConnection)

guard var connection = maybeConnection
Expand Down

0 comments on commit 941a511

Please sign in to comment.