 		* \param newValue The port number as a 16-bit unsigned integer
 		*/
 		set {
-			let networkBytes = hostToNetwork(newValue)
+			let networkBytes = hostToNetworkBytes(newValue)
 			sa_data.0 = networkBytes.0
 			sa_data.1 = networkBytes.1
 		}


	var sin_addr: in_addr_t {
		get {
			return networkToHost([sa_data.2, sa_data.3, sa_data.4, sa_data.5])
		}

		set {
			// Destructures a 32-bit IPv4 address to set as bytes 3 through 6 of sa_data
			let networkBytes = hostToNetwork(newValue)
			sa_data.2 = networkBytes.0
			sa_data.3 = networkBytes.1
			sa_data.4 = networkBytes.2


	}

	private func hostToNetworkBytes(value: UInt16) -> (Int8, Int8) {
		let byte0 = Int8(bitPattern: UInt8((value & 0xFF00) >> 8))
		let byte1 = Int8(bitPattern: UInt8((value & 0x00FF) >> 0))
		return (byte0, byte1)
	}

	private func networkAddressToBytes(value: UInt32) -> (Int8, Int8, Int8, Int8) {
		let network_value = value.bigEndian
		let byte0 = Int8(bitPattern: UInt8((network_value & 0xFF000000) >> 24))
		let byte1 = Int8(bitPattern: UInt8((network_value & 0x00FF0000) >> 16))
