Skip to content

Conversation

@kdubb
Copy link
Contributor

@kdubb kdubb commented Sep 27, 2017

No description provided.

var serverReceivedData: [String] = []

let clientSocket = try! TCPSocket()
let clientSocket = try! TCPSocket(family: .v6)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)


let port = try! getUnusedTCPPort()
let listenSocket = try! TCPSocket()
let listenSocket = try! TCPSocket(family: .v6)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

try! listenSocket.listen()

let clientSocket = try! TCPSocket()
let clientSocket = try! TCPSocket(family: .v6)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)


let port = try! getUnusedTCPPort()
let listenSocket = try! TCPSocket()
let listenSocket = try! TCPSocket(family: .v6)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

var serverReceivedData: [String] = []

let clientSocket = try! TCPSocket()
let clientSocket = try! TCPSocket(family: .v6)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

func testGetPeerName6() {
let port = try! getUnusedTCPPort()
let listenSocket = try! TCPSocket(blocking: true)
let listenSocket = try! TCPSocket(family: .v6, blocking: true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

}

let clientSocket = try! TCPSocket(blocking: true)
let clientSocket = try! TCPSocket(family: .v6, blocking: true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

func testReadAndWrite6() {
let port = try! getUnusedTCPPort()
let listenSocket = try! TCPSocket(blocking: true)
let listenSocket = try! TCPSocket(family: .v6, blocking: true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

exp0.fulfill()
}

let clientSocket = try! TCPSocket(family: .v6)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

let exp0 = expectation(description: "socket accepcted")
var acceptedSocket: TCPSocket!
queue.async {
acceptedSocket = try! listenSocket.accept()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Try Violation: Force tries should be avoided. (force_try)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants