Change access level of port and fd so to prevent modification by user

This commit is contained in:
Hasyimi Bahrudin 2016-12-20 11:02:01 +08:00
parent 32894b0b5b
commit 6d02edb899

View File

@ -35,8 +35,8 @@ public typealias Byte = UInt8
open class Socket {
public let address: String
public var port: Int32
public var fd: Int32?
internal(set) public var port: Int32
internal(set) public var fd: Int32?
public init(address: String, port: Int32) {
self.address = address