To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
import AVFoundation | |
import Foundation | |
// The single FM synthesizer instance. | |
private let gFMSynthesizer: FMSynthesizer = FMSynthesizer() | |
public class FMSynthesizer { | |
import Network | |
let host: NWEndpoint.Host = .init( "httpbin.org" ) | |
let port: NWEndpoint.Port = .https | |
let tlsConfig: NWProtocolTLS.Options = .init() | |
let parameters: NWParameters = .init( tls: tlsConfig ) | |
let connection: NWConnection = .init( host: host, port: port, using: parameters ) | |
connection.stateUpdateHandler = { state in | |
print( "State Update: \( state )" ) | |
} |