 |
getservbyname ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The getservbyname function retrieves service information corresponding to a service name and protocol. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
struct servent FAR * getservbyname(
const char FAR *name,
const char FAR *proto
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER getservbyname IN ws2_32;
STRING name,;
STRING proto
|
 |
 |
 |
| Parameters: |
 |
name
[in] Pointer to a null-terminated service name.
proto
[in] Optional pointer to a null-terminated protocol name. |
 |
 |
| Return value: |
 |
| If no error occurs, getservbyname 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 getservbyname : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-17 23:44:31 | | Modified: | 2001-12-17 23:45:42 | Visited in last 7 days: 16 |