Quick Info

Windows NT
Yes
Win95
Yes
Win32s
No
Import Library
-
Header File
nspapi.h
Unicode
No
Platform Notes
None

CSADDR_INFO

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;

Members

LocalAddr

Specifies a Windows Sockets local address.

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.

RemoteAddr

Specifies a Windows Sockets remote address. There are several uses for this remote address:

  • You can use this remote address to connect to the service via the connect function. This is useful if an application performs send/receive operations that involve connection-oriented protocols.

  • You can use this remote address with the sendto function when you are communicating over a connectionless (datagram) protocol. If you are using a connectionless protocol, such as UDP, sendto is typically the way you pass data to the remote system.

iSocketType

Specifies the type of the Windows socket. The following socket types are defined in WINSOCK.H:

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.

iProtocol

Specifies a value to pass as the protocol parameter to the socket function to open a socket for this service.

See Also

bind
, connect, GetAddressByName, recv, send, sendto

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database