0001    /**
0002     * Copyright IBM Corporation 2016
0003     *
0004     * Licensed under the Apache License, Version 2.0 (the "License");
0005     * you may not use this file except in compliance with the License.
0006     * You may obtain a copy of the License at
0007     *
0008     * http://www.apache.org/licenses/LICENSE-2.0
0009     *
0010     * Unless required by applicable law or agreed to in writing, software
0011     * distributed under the License is distributed on an "AS IS" BASIS,
0012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013     * See the License for the specific language governing permissions and
0014     * limitations under the License.
0015     **/
0016    
0017    public struct Address
ArgumentsParser.swift:17
public func parseAddress() -> Address {
ArgumentsParser.swift:30
  let address = Address(ip: ip, port: UInt16(port))
Socket.swift:27
public func createSocket(address: Address) -> Int32
{ 0018 public let ip
Address.swift:22
    self.ip = ip
Socket.swift:47
  inet_pton(AF_INET, address.ip, &addr)
: String 0019 public let port
Address.swift:23
    self.port = port
Socket.swift:45
  name.sin_port = UInt16(address.port).bigEndian
: UInt16 0020 0021 init
ArgumentsParser.swift:30
  let address = Address(ip: ip, port: UInt16(port))
(ip: String, port: UInt16) { 0022 self.ip = ip 0023 self.port = port 0024 } 0025 } 0026