How to listen on a socket in the modern IPv6-enabled world
Suppose that you are a fancy modern server program, and you want tolisten for both IPv4 and (if available) IPv6 connections. As it happensthis is a bit more intricate than you might expect, and it variesbetween systems.
To start with:
- use
getaddrinfo()with a NULL host, the port you want,AF_UNSPECas the address family, andAI_PASSIVEandAI_ADDRCONFIGin the flags. - if the results don't contain any IPv6 sockets, you have
仍未普世
文學館回應文一則
文學館:面向青年、面向民間 ——回應羅維明先生
讀羅維明先生的文章〈淺水灣文學館〉(10月14日信報P42),教益甚多,亦感激羅先生認同文學館是對本土文學工作者的基本肯
發現抄襲
這本來就是苦差事
但考慮到我年輕時也曾參加過這個比賽
我也經歷過利用參加比賽來肯定自己寫作能力的階段
因此我總是希望盡我所能
把有想法和有潛力的年輕人提拔出來
好好鼓勵
可是今次我
時間和金錢
What Linux's getaddrinfo() is doing with IPv6 (on some versions)
I've previously noted that Linux's getaddrinfo() implementationdoesn't return IPv6 addresses by default if it doesn't think that yoursystem is IPv6 capable, or perhaps if your system has IPv6 disabled(this is most conveniently visible through the Python interface ). This behavior is more or less the same aswhat you'd get if you supplied the AI_ADDRCONFIG flag in the hints structure.
(To be specific, I have seen this behavior on Ubuntu 8.04
旁觀以外
Archdiocese of Saint Louis Redesigns Website
The Archdiocese of Saint Louis today upgraded its entire website to a new design and a new platform, allowing offices and agencies to more quickly and more easily communicate with the faithful in the Archdiocese (and around the world!).
I've been working on this project (with a lot of help from Palantir, a web development company in Chicago) and some local developers for the past year, and I am pleased with the result (I hope you are, too!). I've written up more
你們的機會來了
動中帶靜 綿裡藏針