GETPROTOENT

Section: Linux Programmer's Manual (3)
Updated: April 24, 1993
Index
Return to Main Contents
 

À̸§

getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - ÇÁ·ÎÅäÄÝ ¿£Æ®¸®¸¦ °¡Á®¿Â´Ù.  

»ç¿ë¹ý

#include <netdb.h>

struct protoent *getprotoent(void);

struct protoent *getprotobyname(const char *name);

struct protoent *getprotobynumber(int proto);

void setprotoent(int stayopen);

void endprotoent(void);
 

¼³¸í

getprotoent() ÇÔ¼ö´Â ÆÄÀÏ /etc/protocols ¿¡¼­ ´ÙÀ½ ¶óÀÎÀ» ÀÐ°í ¶óÀο¡¼­ »Ì¾Æ³½ ÇʵåµéÀ» Æ÷ÇÔÇÏ´Â protoent ±¸Á¶Ã¼¸¦ ¹ÝȯÇÑ´Ù. /etc/protocols ÆÄÀÏÀº ÇÊ¿äÇÏ´Ù¸é ¿­·ÁÁø´Ù.

getprotobyname() ÇÔ¼ö´Â /etc/protocols ¿¡¼­ ÇÁ·ÎÅäÄÝ À̸§ name°ú ÀÏÄ¡ÇÏ´Â ¶óÀο¡ ÇØ´çÇÏ´Â protoent ±¸Á¶Ã¼¸¦ ¹ÝȯÇÑ´Ù.

getprotobynumber() ÇÔ¼ö´Â ÇÁ·ÎÅäÄÝ ¹øÈ£ number°ú ÀÏÄ¡ÇÏ´Â ¶óÀο¡ ÇØ´çÇÏ´Â protoent ±¸Á¶Ã¼¸¦ ¹ÝȯÇÑ´Ù.

setprotoent() ÇÔ¼ö´Â /etc/protocols ÆÄÀÏÀ» ÀÐ°í µÇ °¨´Â´Ù. ¸¸ÀÏ stayopen °¡ Âü(1)À̶ó¸é, ÆÄÀÏÀº getprotobyname() ³ª getprotobynumber() È£Ãâ½Ã ´ÝÇôÁöÁö ¾Ê´Â´Ù.

endprotoent() ÇÔ¼ö´Â /etc/protocols¸¦ ´Ý´Â´Ù.

protoent ±¸Á¶Ã¼´Â ´ÙÀ½Ã³·³ <netdb.h> ¿¡ Á¤ÀǵǾî ÀÖ´Ù:


struct protoent {
        char    *p_name;        /* °ø½ÄÀûÀÎ ÇÁ·ÎÅäÄÝ À̸§ */
        char    **p_aliases;    /* º°Äª ¸®½ºÆ® */
        int     p_proto;        /* ÇÁ·ÎÅäÄÝ ¹øÈ£ */
}

protoent ±¸Á¶Ã¼ÀÇ ¸â¹ö´Â:

p_name
ÇÁ·ÎÅäÄÝÀÇ °ø½ÄÀûÀÎ À̸§
p_aliases
ÇÁ·ÎÅäÄÝÀ» À§ÇÑ ¼±ÅÃÇÒ¼ö ÀÖ´Â À̸§ÀÇ ³Î·Î Á¾·áµÈ ¸®½ºÆ®
p_proto
ÇÁ·ÎÅäÄÝ ¹øÈ£
 

¹Ýȯ°ª

getprotoent(), getprotobyname() ±×¸®°í getprotobynumber() ÇÔ¼ö´Â protoent ±¸Á¶Ã¼¸¦ ¹ÝȯÇϰųª, ¸¸ÀÏ ¿¡·¯°¡ ¹ß»ýÇϰųª ÆÄÀÏÀÇ ³¡¿¡ µµÂøÇÑ´Ù¸é NULL Æ÷ÀÎÅ͸¦ ¹ÝȯÇÑ´Ù.  

ÆÄÀÏ

/etc/protocols
ÇÁ·ÎÅäÄÝ µ¥ÀÌÅͺ£À̽º ÆÄÀÏ
 

ȣȯ

BSD 4.3  

°ü·Ã Ç׸ñ

getservent(3), getnetent(3), protocols(5)  

¿ªÀÚ

Á¤°­ÈÆ <skyeyes@soback.kornet.net>, 2001³â 4¿ù 30ÀÏ


 

Index

À̸§
»ç¿ë¹ý
¼³¸í
¹Ýȯ°ª
ÆÄÀÏ
ȣȯ
°ü·Ã Ç׸ñ
¿ªÀÚ

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004