These routines send and receive network data the specifics of addresses and families on a given operating system.
Return all the protocol addresses of this host.
Compile-time configuration flags will indicate which protocol family addresses might be returned. *addr is filled in to point to an array of address pointers, terminated by a null pointer. All the storage pointed to is allocated and should be freed by the caller with krb5_free_address when no longer needed.
Given an address adr and an additional address-type specific portion pointed to by port this routine combines them into a freshly-allocated krb5_address with type ADDRTYPE_ADDRPORT and fills in *outaddr to point to this address. For IP addresses, ptr should point to a network-byte-order TCP or UDP port number. Upon success, *outaddr will point to an allocated address which should be freed with krb5_free_address.
Send the message send to a KDC for realm realm and return the response (if any) in receive.
If the message is sent and a response is received, 0 is returned, otherwise an error code is returned.
The storage for receive is allocated and should be freed by the caller when finished.
Like read(2), but guarantees that it reads as much as was requested or returns -1 and sets errno.
(make sure your sender will send all the stuff you are looking for!) Only useful on stream sockets and pipes.
Like write(2), but guarantees that it writes as much as was requested or returns -1 and sets errno.
Only useful on stream sockets and pipes.
krb5_write_message writes data to the network as a message, using the network connection pointed to by fd.
Reads data from the network as a message, using the network connection pointed to by fd.