mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 00:37:35 +02:00
Added address-family
This commit is contained in:
parent
8fb892a131
commit
a26f7ab0fd
1 changed files with 8 additions and 0 deletions
|
@ -106,6 +106,14 @@
|
|||
freeaddrinfo(servinfo); // all done with this structure
|
||||
return_closcall1(data, k, obj_int2obj(sockfd)); ")
|
||||
|
||||
(define-syntax address-family
|
||||
(er-macro-transformer
|
||||
(lambda (expr rename compare)
|
||||
(case (cadr expr)
|
||||
((inet) '*af-inet*)
|
||||
((inet6) '*af-inet6*)
|
||||
(else '*af-unspec*)))))
|
||||
|
||||
(define (socket-merge-flags . flags)
|
||||
(if (null? flags)
|
||||
0
|
||||
|
|
Loading…
Add table
Reference in a new issue