
{"id":1343,"date":"2010-04-15T19:43:16","date_gmt":"2010-04-15T14:13:16","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=1343"},"modified":"2010-04-15T19:43:16","modified_gmt":"2010-04-15T14:13:16","slug":"getservbyname-programming","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/04\/15\/getservbyname-programming\/","title":{"rendered":"getservbyname programming"},"content":{"rendered":"<pre class=\"brush:c\">\nThe getservbyname() function returns a servent structure for the entry from the database that  matches  the  service name  using protocol proto.  If proto is NULL, any protocol will be matched.  A connection is opened to the database if necessary.\n<\/pre>\n<p>getservbyname(&#8220;ftp&#8221;, &#8220;tcp&#8221;)  = 0x7fcc5248b8c0<\/p>\n<p>       The servent structure is defined in  as follows:<\/p>\n<p>           struct servent {<br \/>\n               char  *s_name;       \/* official service name *\/<br \/>\n               char **s_aliases;    \/* alias list *\/<br \/>\n               int    s_port;       \/* port number *\/<br \/>\n               char  *s_proto;      \/* protocol to use *\/<br \/>\n           }<\/p>\n<p>Stallman, Richard: The Realization<br \/>\n[audio:http:\/\/www.freeinfosociety.com\/media\/sounds\/72.mp3]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The getservbyname() function returns a servent structure for the entry from the database that matches the service name using protocol proto. If proto is NULL, any protocol will be matched. A connection is opened to the database if necessary. getservbyname(&#8220;ftp&#8221;, &#8220;tcp&#8221;) = 0x7fcc5248b8c0 The servent structure is defined in as follows: struct servent { char &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/04\/15\/getservbyname-programming\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;getservbyname programming&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[252,1035,1154],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1343"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=1343"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/1343\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}