The CSADDR_INFO structure contains Windows Sockets address information for a network service or name space provider. The GetAddressByName function obtains Windows Sockets address information using CSADDR_INFO structures.
typedef struct _CSADDR_INFO { SOCKET_ADDRESS LocalAddr; SOCKET_ADDRESS RemoteAddr; INT iSocketType; INT iProtocol; } CSADDR_INFO;
In a client application, pass this address to the bind function to obtain access to a network service.
In a network service, pass this address to the bind function so that
the service is bound to the appropriate local address.
Value |
Socket Type |
SOCK_STREAM |
Stream.This is a protocol that sends data as a stream of bytes, with no message boundaries. |
SOCK_DGRAM |
Datagram. This is a connectionless protocol. There is no virtual circuit setup. There are typically no reliability guarantees. Services use recvfrom to obtain datagrams. The listen and accept functions do not work with datagrams. |
SOCK_RDM |
Reliably-Delivered Message. This is a protocol that preserves message boundaries in data. |
SOCK_SEQPACKET |
Sequenced packet stream. This is a protocol that is essentially the same as SOCK_RDM. |
bind, connect, GetAddressByName, recv, send, sendto
file: /Techref/os/win/api/win32/struc/src/str02_24.htm, 4KB, , updated: 2000/4/7 11:14, local time: 2024/12/25 20:31,
3.137.171.71:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/struc/src/str02_24.htm"> CSADDR_INFO</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.