Thank you very much!
> On 29 Dec 2016, at 23:03, Guillaume Lessard via swift-users
> wrote:
>
> Hi Etan,
>
> `withMemoryRebound` does not copy memory.
> The proposal for UnsafeRawPointer contains information about the memory model
> (as related to pointers):
> https://github.com/apple/swift-
b link below)
>>>
>>> It does not answer your question exactly, but I think it is a rather better
>>> approach to sockaddr usage.
>>>
>>> Regards,
>>> Rien
>>>
>>> Site: http://balancingrock.nl
>>> Blog: http://s
n.blogspot.com
> Github: http://github.com/Swiftrien
> Project: http://swiftfire.nl
>
>
>
>
>> On 29 Dec 2016, at 14:27, Etan Kissling via swift-users
>> wrote:
>>
>> Hi,
>>
>> When calling POSIX accept, the common way is to
>>
Hi,
When calling POSIX accept, the common way is to
sockaddr_storage addr = {0};
sockaddr_len addrlen = 0;
int clientFd = accept(serverFd, (sockaddr *) &addr, &addrlen);
In Swift, this translates to
var addr = sockaddr_storage()
var addrlen = sockaddr_len(0)
int clientFd = withUnsafeMutablePointe
in the module.modulemap's "header"
>> directive and have it instead use pkgConfig values.
>>
>>
>>
>>> On 28 Dec 2016, at 17:12, Etan Kissling via swift-users
>>> wrote:
>>>
>>> Hi,
>>>
>>> before Swi
Addition:
Example system module as I have it now:
https://github.com/Scriptreactor/SwiftCTLS
I'd like to get rid of the absolute path in the module.modulemap's "header"
directive and have it instead use pkgConfig values.
> On 28 Dec 2016, at 17:12, Etan Kissling vi
Hi,
before Swift 3, for System Modules to work, these steps were necessary:
1. Creating module map
2. Creating System Module package
3. Creating git repo for System Module package, tagging with version
4. Referencing the System Module package from main package
5. Adding -Xcc -I and -Xlinker -L fla
Got an answer here:
http://stackoverflow.com/questions/39857435/swift-getaddrinfo
Current version:
http://pastebin.com/y7nDATSH
On 4 Oct 2016, at 19:30, Etan Kissling via swift-users
mailto:swift-users@swift.org>> wrote:
Yup (BTW I'm fine with the "ai_next" item becoming
iftySockets
On Tuesday, October 4, 2016, Etan Kissling via swift-users
>
wrote:
POSIX getaddrinfo allocates memory that must later be freed using freeaddrinfo.
See http://manpages.ubuntu.com/manpages/xenial/en/man3/getaddrinfo.3.html
To simplify the API, I've created this functio
POSIX getaddrinfo allocates memory that must later be freed using freeaddrinfo.
See http://manpages.ubuntu.com/manpages/xenial/en/man3/getaddrinfo.3.html
To simplify the API, I've created this function:
import Foundation
enum SystemError: Swift.Error {
case ge
Hey there,
I have a model that contains an optional NSNumber.
@objc(Model) final class Model : NSObject {
dynamic var someNumber: NSNumber?
}
I now bind such en object to an NSObjectController,
and bind the value binding of an NSTextField to the object controller's
selection.someNumber key
nko
mailto:griboz...@gmail.com>> wrote:
On Thu, Dec 17, 2015 at 2:17 PM, Etan Kissling via swift-users
mailto:swift-users@swift.org>> wrote:
I want to use instances of a custom class as Dictionary key.
This requires the class to conform to Hashable.
func ==(lhs: KeyType1, rhs: Ke
I want to use instances of a custom class as Dictionary key.
This requires the class to conform to Hashable.
func ==(lhs: KeyType1, rhs: KeyType1) -> Bool { return lhs.id == rhs.id }
final class KeyType1: Hashable, CustomStringConvertible {
let id: String
init(id: String) { self.id = id }
13 matches
Mail list logo