 |
 |
Windows Sockets 2 (Winsock) ..msdn Add comment |
 |
|
accept
|
|
The accept function permits an incoming connection attempt on a socket. |
|
 |
 |
 |
|
bind
|
|
The bind function associates a local address (IP address and port) with a socket. |
|
 |
 |
 |
|
closesocket
|
|
The closesocket function closes an existing socket. |
|
 |
 |
 |
|
gethostbyaddr
|
|
The gethostbyaddr function retrieves the host information corresponding to a network address. |
|
 |
 |
 |
|
gethostbyname
|
|
The gethostbyname function retrieves host information corresponding to a host name from a host database. |
|
 |
 |
 |
|
gethostname
|
|
The gethostname function retrieves the standard host name for the local computer. |
|
 |
 |
 |
|
getnameinfo
|
|
Provides protocol-independent name resolution from an address to an ANSI host name and from a port number to the ANSI service name. |
|
 |
 |
 |
|
getprotobyname
|
|
The getprotobyname function retrieves the protocol information corresponding to a protocol name. |
|
 |
 |
 |
|
getprotobynumber
|
|
The getprotobynumber function retrieves protocol information corresponding to a protocol number. |
|
 |
 |
 |
|
getservbyname
|
|
The getservbyname function retrieves service information corresponding to a service name and protocol. |
|
 |
 |
 |
|
getservbyport
|
|
The getservbyport function retrieves service information corresponding to a port and protocol. |
|
 |
 |
 |
|
getsockopt
|
|
The getsockopt function retrieves a socket option. |
|
 |
 |
 |
|
htonl
|
|
The htonl function converts a u_long from host to TCP/IP network byte order (which is big endian). |
|
 |
 |
 |
|
htons
|
|
The htons function converts a u_short from host to TCP/IP network byte order (which is big-endian). |
|
 |
 |
 |
|
inet_addr
|
|
The inet_addr function converts a string containing an (Ipv4) Internet Protocol dotted address into a proper address for the IN_ADDR structure. |
|
 |
 |
 |
|
inet_ntoa
|
|
The inet_ntoa function converts an (Ipv4) Internet network address into a string in Internet standard dotted format. |
|
 |
 |
 |
|
listen
|
|
The listen function places a socket in a state in which it is listening for an incoming connection. |
|
 |
 |
 |
|
ntohl
|
|
The ntohl function converts a u_long from TCP/IP network order to host byte order (which is little-endian on Intel processors). |
|
 |
 |
 |
|
ntohs
|
|
The ntohs function converts a u_short from TCP/IP network byte order to host byte order (which is little-endian on Intel processors). |
|
 |
 |
 |
|
recv
|
|
The recv function receives data from a connected or bound socket. |
|
 |
 |
 |
|
recvfrom
|
|
Receives a datagram and stores the source address. |
|
 |
 |
 |
|
send
|
|
The send function sends data on a connected socket.
|
|
 |
 |
 |
|
sendto
|
|
Sends data to a specific destination. |
|
 |
 |
 |
|
setsockopt
|
|
The setsockopt function sets a socket option. |
|
 |
 |
 |
|
socket
|
|
The socket function creates a socket that is bound to a specific service provider. |
|
 |
 |
 |
|
WSACleanup
|
|
The WSACleanup function terminates use of the Ws2_32.dll. |
|
 |
 |
 |
|
WSACloseEvent
|
|
The WSACloseEvent function closes an open event object handle. |
|
 |
 |
 |
|
WSAConnect
|
|
Establishes a connection to another socket application, exchanges connect data, and specifies required quality of service based on the specified FLOWSPEC structure.
|
|
 |
 |
 |
|
WSACreateEvent
|
|
The WSACreateEvent function creates a new event object. |
|
 |
 |
 |
|
WSAEnumProtocols
|
|
The WSAEnumProtocols function retrieves information about available transport protocols. |
|
 |
 |
 |
|
WSAEventSelect
|
|
The WSAEventSelect function specifies an event object to be associated with the specified set of FD_XXX network events. |
|
 |
 |
 |
|
WSAGetLastError
|
|
The WSAGetLastError function returns the error status for the last operation that failed. |
|
 |
 |
 |
|
WSARecv
|
|
Receives data from a connected socket. |
|
 |
 |
 |
|
WSASend
|
|
Sends data on a connected socket. |
|
 |
 |
 |
|
WSAStartup
|
|
The WSAStartup function initiates use of Ws2_32.dll by a process. |
|
 |
 |
 |
|
WSAWaitForMultipleEvents
|
|
The WSAWaitForMultipleEvents function returns either when one or all of the specified event objects are in the signaled state, or when the time-out interval expires. |
|
 |
 |
 |
|
ws_connect
|
|
The connect function establishes a connection to a specified socket.
|
|
 |
 |
 |
|
ws_select
|
|
The select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.
|
|
 |
 |
 |
 |
| Code examples: |
 |
|
|
 |
|
 |
 |
User Contributed Notes: |
 |
 |
 |
 |
 |
 | Don Higgins | 2006-08-27 22:58:19 |  |
 |
 |
 | I am not sure where to post this question.
Is there any function I can use to read a USB port for data like I do a comm port? |  |
 |
 |
 |
 | raman_jain_durg@hotmail.com | 2007-04-19 10:13:50 |  |
 |
 |
 | I am using Visual Foxpro-6 and I build Exe of my project when i run exe file i received Fatel Error 00005. Some one Please send the solution of this error on my EmailID : raman_jain_durg@hotmail.com |  |
 |
 |
 |
 |
 |
|