C language function:getprotobynumber sample codes

Search sample code in the internet.It is the result.


TITLE : Safari | Linux Socket Programming by Example -> Consulting the /etc/protocols File
When your application has the protocol number, and it needs to display it in human readable terms, the getprotobynumber(3) routine is used. The function prototype is as follows:.......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=61.html


TITLE : Safari | Linux Socket Programming by Example -> Consulting the /etc/protocols File
struct protoent *getprotobynumber(int proto);.......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=61.html
TITLE : Safari | Linux Socket Programming by Example -> Consulting the /etc/protocols File
The pointer returned by getprotobynumber(3) is only valid until the next call to the same function........
http://alas.matf.bg.ac.rs/manuals/lspe/snode=61.html
TITLE : Safari | Linux Socket Programming by Example -> Consulting the /etc/protocols File
getprotobynumber(3) 2nd.......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=61.html
TITLE : Safari | Linux Socket Programming by Example -> Consulting the /etc/protocols File
getprotobynumber(3) function 2nd.......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=61.html
TITLE : Structure of the TCP/IP manager - BlackBerry Native
* getprotobynumber().......
http://developer.blackberry.com/native/documentation/dev/rtos/arch/tcpip_struct.html
TITLE : Structure of the TCP/IP manager - BlackBerry Native
The getprotobyname() and getprotobynumber() functions have been modified to contain a small number of builtin protocols, including IP, ICNP, UDP, and TCP. For many applications, this means that the /etc/protocols file doesn't need to exist........
http://developer.blackberry.com/native/documentation/dev/rtos/arch/tcpip_struct.html

The protoent structure defines the protocol-name mapping used with getprotobyname(), getprotobynumber(), and getprotoent():.......
http://docs.oracle.com/cd/E19620-01/805-4041/6j3r8iu2g/index.html
TITLE : apue/6 at master ‘µ zigorou/apue ‘µ GitHub
* getprotobyname(3), getprotobynumber(3).......
http://github.com/zigorou/apue/tree/master/6
TITLE : getprotobynumber_r(3): protocol entry - Linux man page
The getprotoent_r(), getprotobyname_r(), and getprotobynumber_r() functions are the reentrant equivalents of, respectively, getprotoent(3), getprotobyname(3), and getprotobynumber(3). They differ in the way that the protoent structure is returned, and in the function calling signature and return value. This manual page describes just the differences from the nonreentrant functions........
http://linux.die.net/man/3/getprotobynumber_r
TITLE : getprotobynumber function (Windows)
struct PROTOENT* FAR getprotobynumber(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738537(v=vs.85).aspx
TITLE : Socket Library Functions - Cisco
getprotobynumber().......
http://www.cisco.com/c/en/us/td/docs/ios/sw_upgrades/interlink/r2_0/sock_pr/sklibfun.html
TITLE : Socket Library Functions - Cisco
The getprotobynumber() function is used to obtain the official name of a protocol when the protocol number is known. This information is acquired from a network database maintained by the local system........
http://www.cisco.com/c/en/us/td/docs/ios/sw_upgrades/interlink/r2_0/sock_pr/sklibfun.html
TITLE : Socket Library Functions - Cisco
getprotobynumber() returns a pointer to an object with this structure containing information extracted from an internal network protocol database. This database is similar in function to the /etc/protocols file on UNIX-based systems:.......
http://www.cisco.com/c/en/us/td/docs/ios/sw_upgrades/interlink/r2_0/sock_pr/sklibfun.html
TITLE : Socket Library Functions - Cisco
All information is contained in a static area and must be copied if it is to be saved. The getprotobynumber() function sequentially searches from the beginning of the network protocol database until a matching protocol number is found, or until the end of the database is reached........
http://www.cisco.com/c/en/us/td/docs/ios/sw_upgrades/interlink/r2_0/sock_pr/sklibfun.html
TITLE : Socket Library Functions - Cisco
If successful, the getprotobynumber() function returns a pointer to the protoent structure. If unsuccessful, a null pointer is returned........
http://www.cisco.com/c/en/us/td/docs/ios/sw_upgrades/interlink/r2_0/sock_pr/sklibfun.html
TITLE : Socket Library Functions - Cisco
The getprotobynumber() function may return these error codes in the external integer h_errno:.......
http://www.cisco.com/c/en/us/td/docs/ios/sw_upgrades/interlink/r2_0/sock_pr/sklibfun.html
TITLE : Perl Manual - Commands
getprotobynumber(NUMBER).......
http://www.math.utah.edu/docs/info/perl_11.html
TITLE : An Advanced Socket Communication Tutorial
For protocols, which are defined in the /etc/protocols file, the protoent structure defines the protocol-name mapping used with the functions getprotobyname(), getprotobynumber(), and getprotoent():.......
http://www.pja.edu.pl/~jms/qnx/help/tcpip_4.25_en/prog_guide/sock_advanced_tut.html
TITLE : CON33-C. Avoid race conditions when using library functions - SEI CERT C Coding Standard - CERT Secure Coding Standards
ftw() getc_unlocked() getchar_unlocked() getdate() getenv() getgrent() getgrgid() getgrnam() gethostent() getlogin() getnetbyaddr() getnetbyname() getnetent() getopt() getprotobyname() getprotobynumber() getprotoent() getpwent() getpwnam() getpwuid() getservbyname().......
http://www.securecoding.cert.org/confluence/display/c/CON33-C.+Avoid+race+conditions+when+using+library+functions
TITLE : Windows Sockets
* getprotobynumber().......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
* WSAAsyncGetProtoByNumber().......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
getprotobynumber()* Retrieve the protocol name and number corresponding to a protocol number........
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
WSAAsyncGetProtoByNumber() WSAAsyncGetHostByName() function provides an asynchronous message based.......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
getprotobynumber().......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
WSAAsyncGetProtoByName(), getprotobynumber()........
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
getprotobynumber().......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
If no error occurs, getprotobynumber() returns a pointer to the protoent structure described above. Otherwise it returns a NULL pointer and a specific error number may be retrieved by calling WSAGetLastError()........
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
WSAAsyncGetProtoByNumber(), getprotobyname().......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
WSAAsyncGetProtoByNumber().......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
If the asynchronous operation could not be initiated, WSAAsyncGetProtoByNumber() returns a zero value, and a specific error number may be retrieved by calling WSAGetLastError()........
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
See Also getprotobynumber(), WSACancelAsyncRequest().......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
WSAAsyncGetHostByAddr(), WSAAsyncGetHostByName(), WSAAsyncGetProtoByNumber(), WSAAsyncGetProtoByName(), WSAAsyncGetHostByName(), WSAAsyncGetServByPort(), WSAAsyncGetServByName()........
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
struct protoent FAR * PASCAL FAR getprotobynumber(int proto);.......
http://www.sockets.com/winsock.htm
TITLE : Windows Sockets
HANDLE PASCAL FAR WSAAsyncGetProtoByNumber(HWND hWnd, u_int wMsg,.......
http://www.sockets.com/winsock.htm
TITLE : A brief discussion on the Linux network APIs which will be used in client-server communications programming with C source codes
getprotobyname(), getprotobynumber(), getprotobyent(), getnetbyname(), getnetbyaddr(), getnetent()........
http://www.tenouk.com/Module39d.html
TITLE : C program examples on getprotobyname(), getprotobyport() and how to write the IP version–independent for client-server
servptr = getprotobynumber(protocol[i]);.......
http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedInternet3d.html
TITLE : C program examples on getprotobyname(), getprotobyport() and how to write the IP version–independent for client-server
printf ("getprotobynumber() - %d failed with error code %ld\n", protocol[i], WSAGetLastError());.......
http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedInternet3d.html
TITLE : C program examples on getprotobyname(), getprotobyport() and how to write the IP version–independent for client-server
printf("getprotobynumber() is OK - %d\n", protocol[i]);.......
http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancedInternet3d.html
TITLE : Sockets
getprotobynumber(int proto) returns a protoent structure for the line that matches the protocol number.......
http://www.yolinux.com/TUTORIALS/Sockets.html
search Google

https://www.google.com/#q=getprotobynumber