{"id":284,"date":"2012-04-25T10:50:17","date_gmt":"2012-04-25T08:50:17","guid":{"rendered":"http:\/\/www.martoni.fr\/wordpress\/?p=284"},"modified":"2012-04-25T10:50:17","modified_gmt":"2012-04-25T08:50:17","slug":"linux-sockets","status":"publish","type":"post","link":"http:\/\/www.fabienm.eu\/wordpress\/2012\/04\/25\/linux-sockets\/","title":{"rendered":"Linux sockets"},"content":{"rendered":"<p>This is just a personnal note of documentation for socket types managed by linux. All sockets types are declared under the file <em>include\/linux\/socket.h<\/em> :<\/p>\n<ul>\n<li>AF_UNSPEC    <b> 0<\/b> <\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/Unix_domain_socket\">AF_UNIX      <\/a> <b> 1<\/b>  \/* Unix domain sockets     *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/Unix_domain_socket\">AF_LOCAL     <\/a> <b> 1<\/b>  \/* POSIX name for AF_UNIX  *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/Internet_Protocol\">AF_INET      <\/a> <b> 2<\/b>  \/* Internet IP Protocol   *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/X.25\">AF_AX25      <\/a> <b> 3<\/b>  \/* Amateur Radio AX.25     *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/Internetwork_Packet_Exchange\">AF_IPX       <\/a> <b> 4<\/b>  \/* Novell IPX       *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/AppleTalk\">AF_APPLETALK <\/a> <b> 5<\/b>  \/* AppleTalk DDP     *\/<\/li>\n<li><a href=\"http:\/\/www.tapr.org\/pr_intro.html#NR\">AF_NETROM    <\/a> <b> 6<\/b>  \/* Amateur Radio NET\/ROM   *\/<\/li>\n<li><a href=\"http:\/\/lxr.free-electrons.com\/ident?i=AF_BRIDGE\">AF_BRIDGE    <\/a> <b> 7<\/b>  \/* Multiprotocol bridge  <b>????<\/b>  *\/<\/li>\n<li><a href=\"http:\/\/linux-atm.sourceforge.net\/\">AF_ATMPVC    <\/a> <b> 8<\/b>  \/* ATM PVCs      *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/X.25\">AF_X25       <\/a> <b> 9<\/b>  \/* Reserved for X.25 project   *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/IPv6\">AF_INET6     <\/a> <b>10<\/b>  \/* IP version 6      *\/<\/li>\n<li><a href=\"http:\/\/www.techfest.com\/networking\/wan\/x25plp.htm\">AF_ROSE      <\/a> <b>11<\/b>  \/* Amateur Radio X.25 PLP  *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/DECnet\">AF_DECnet    <\/a> <b>12<\/b>  \/* Reserved for DECnet project  *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/IEEE_802.2\">AF_NETBEUI   <\/a> <b>13<\/b>  \/* Reserved for 802.2LLC project*\/<\/li>\n<li><a href=\"http:\/\/tomoyo.sourceforge.jp\/cgi-bin\/lxr\/ident?i=AF_SECURITY\">AF_SECURITY<\/a><b>14<\/b>\/* Security callback pseudo AF <b>????<\/b>*\/<\/li>\n<li><a href=\"http:\/\/www.ietf.org\/mail-archive\/web\/ietf\/current\/msg06776.html\">AF_KEY       <\/a> <b>15<\/b> \/* PF_KEY key management API *\/<\/li>\n<li><a href=\"http:\/\/www.kernel.org\/doc\/man-pages\/online\/pages\/man7\/netlink.7.html\">AF_NETLINK   <\/a> <b>16<\/b><\/li>\n<li><a href=\"https:\/\/metacpan.org\/module\/Socket::Packet#DESCRIPTION\">AF_PACKET    <\/a> <b>17<\/b>  \/* Packet family    *\/<\/li>\n<li><a href=\"http:\/\/lxr.free-electrons.com\/ident?i=AF_ASH\">AF_ASH<\/a>       <b>18<\/b>  \/* Ash       <b>????<\/b> *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/Econet\">AF_ECONET    <\/a> <b>19<\/b>  \/* Acorn Econet      *\/<\/li>\n<li><a href=\"http:\/\/linux-atm.sourceforge.net\/\">AF_ATMSVC    <\/a> <b>20<\/b>  \/* ATM SVCs      *\/<\/li>\n<li><a href=\"http:\/\/lwn.net\/Articles\/325932\/\">AF_RDS       <\/a> <b>21<\/b>  \/* RDS sockets       *\/<\/li>\n<li><a href=\"http:\/\/www.vanheusden.com\/sna\/\">AF_SNA       <\/a> <b>22<\/b>  \/* Linux SNA Project (nutters!) *\/<\/li>\n<li><a href=\"http:\/\/linux.die.net\/man\/7\/irda\">AF_IRDA      <\/a> <b>23<\/b>  \/* IRDA sockets      *\/<\/li>\n<li><a href=\"http:\/\/www.mjmwired.net\/kernel\/Documentation\/networking\/l2tp.txt\">AF_PPPOX     <\/a> <b>24<\/b>  \/* PPPoX sockets    *\/<\/li>\n<li><a href=\"http:\/\/wiki.sangoma.com\/wanpipe-api\">AF_WANPIPE   <\/a> <b>25<\/b>  \/* Wanpipe API Sockets *\/<\/li>\n<li><a href=\"http:\/\/code.google.com\/p\/linux-llc\/\">AF_LLC       <\/a> <b>26<\/b>  \/* Linux LLC      *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/SocketCAN\">AF_CAN       <\/a> <b>29<\/b>  \/* Controller Area Network      *\/<\/li>\n<li><a href=\"http:\/\/tipc.sourceforge.net\/doc\/Programmers_Guide.txt\">AF_TIPC      <\/a> <b>30<\/b>  \/* TIPC sockets      *\/<\/li>\n<li><a href=\"http:\/\/www.bluez.org\/\">AF_BLUETOOTH <\/a> <b>31<\/b>  \/* Bluetooth sockets     *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/IUCV\">AF_IUCV      <\/a> <b>32<\/b>  \/* IUCV sockets      *\/<\/li>\n<li><a href=\"http:\/\/www.mjmwired.net\/kernel\/Documentation\/networking\/rxrpc.txt\">AF_RXRPC     <\/a> <b>33<\/b>  \/* RxRPC sockets     *\/<\/li>\n<li><a href=\"http:\/\/www.misdn.org\/index.php\/Main_Page\">AF_ISDN      <\/a> <b>34<\/b>  \/* mISDN sockets     *\/<\/li>\n<li><a href=\"http:\/\/www.mjmwired.net\/kernel\/Documentation\/networking\/phonet.txt\">AF_PHONET    <\/a> <b>35<\/b>  \/* Phonet sockets    *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/IEEE_802.15.4\">AF_IEEE802154<\/a> <b>36<\/b>  \/* IEEE802154 sockets    *\/<\/li>\n<li><a href=\"http:\/\/en.wikipedia.org\/wiki\/CAIF\">AF_CAIF      <\/a> <b>37<\/b>  \/* CAIF sockets      *\/<\/li>\n<li>AF_MAX       38  \/* For now.. *\/<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This is just a personnal note of documentation for socket types managed by linux. All sockets types are declared under the file include\/linux\/socket.h : AF_UNSPEC 0 AF_UNIX 1 \/* Unix domain sockets *\/ AF_LOCAL 1 \/* POSIX name for AF_UNIX &hellip; <a href=\"http:\/\/www.fabienm.eu\/wordpress\/2012\/04\/25\/linux-sockets\/\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106,10],"tags":[122,19,120,121],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-embarque","category-informatique","tag-documentation","tag-linux","tag-nework","tag-socket"],"_links":{"self":[{"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":8,"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":292,"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/posts\/284\/revisions\/292"}],"wp:attachment":[{"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fabienm.eu\/wordpress\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}