Skip to content

Commit

Permalink
Make defaultTimeout property a variable instead of a constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsimone committed Dec 15, 2023
1 parent c9d81f9 commit d4547f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Net/NetSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
/// The NetSocket class creates a two-way connection between a client and a server as a client. This class is wrapper for a InputStream and an OutputStream.
open class NetSocket: NSObject {
/// The default time to wait for TCP/IP Handshake done.
public static let defaultTimeout: Int = 15 // sec
public static var defaultTimeout: Int = 15 // sec
/// The defulat stream's TCP window size.
public static let defaultWindowSizeC = Int(UInt16.max)
/// The current incoming data buffer.
Expand Down

0 comments on commit d4547f2

Please sign in to comment.