 |
getservbyport ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The getservbyport function retrieves service information corresponding to a port and protocol. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
struct servent FAR * getservbyport(
int port,
const char FAR *proto
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER getservbyport IN ws2_32;
INTEGER port,;
STRING proto
|
 |
 |
 |
| Parameters: |
 |
port
[in] Port for a service, in network byte order.
proto
[in] Optional pointer to a protocol name. |
 |
 |
| Return value: |
 |
| If no error occurs, getservbyport returns a pointer to the servent structure. Otherwise, it returns a NULL pointer and a specific error number can be retrieved by calling WSAGetLastError. |
 |
 |
| Word Index links for the getservbyport : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-17 23:40:17 | | Modified: | 2001-12-17 23:41:46 | Visited in last 7 days: 12 |