4 Describes what type of file is referenced by a specified file
15 PRDescType PR_GetDescType(PRFileDesc *file);
21 The function has the following parameter:
24 A pointer to a :ref:`PRFileDesc` object whose descriptor type is to be
31 The function returns a ``PRDescType`` enumeration constant that
32 describes the type of file.
38 The ``PRDescType`` enumeration is defined as follows:
42 typedef enum PRDescType {
44 PR_DESC_SOCKET_TCP = 2,
45 PR_DESC_SOCKET_UDP = 3,
49 The enumeration has the following enumerators:
52 The :ref:`PRFileDesc` object represents a normal file.
53 ``PR_DESC_SOCKET_TCP``
54 The :ref:`PRFileDesc` object represents a TCP socket.
55 ``PR_DESC_SOCKET_UDP``
56 The :ref:`PRFileDesc` object represents a UDP socket.
58 The :ref:`PRFileDesc` object is a layered file descriptor.