Using Win32 functions in Visual FoxPro Image Gallery
Windows Sockets 2 (Winsock)
..msdn
accept
bind
closesocket
gethostbyaddr
gethostbyname
gethostname
getnameinfo
getprotobyname
getprotobynumber
getservbyname
getservbyport
getsockopt
htonl
htons
inet_addr
inet_ntoa
listen
ntohl
ntohs
recv
recvfrom
send
sendto
setsockopt
socket
WSACleanup
WSACloseEvent
WSAConnect
WSACreateEvent
WSAEnumProtocols
WSAEventSelect
WSAGetLastError
WSARecv
WSASend
WSAStartup
WSAWaitForMultipleEvents
ws_connect
ws_select
Code examples:
Winsock: how to retrieve a service information corresponding to a port
getservbyport
..msdn    Add comment     W32 Constants      Translate this page
The getservbyport function retrieves service information corresponding to a port and protocol.
Code examples:
Winsock: how to retrieve a service information corresponding to a port
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-17 23:40:17
Modified: 2001-12-17 23:41:46
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
16 sec.Function: 'SetSysColors'
34 sec.Function: 'AlphaBlend'
51 sec.Function: 'GetTextCharacterExtra'
1.17 min.Function: 'DeviceIoControl'
1.45 min.Function: 'ActivateKeyboardLayout'
1.77 min.Function: 'waveInGetNumDevs'
2.07 min.Function: 'CeWriteFile'
2.38 min.
Function group: 'System Shutdown'
2.68 min.Function: 'GetPrinter'
2.97 min.Function: 'CloseWindow'
Google
Advertise here!