Trusted Solaris Developer's Guide

Send and Receive Data

The t6sendto(3NSL) routine sends security attributes with a message. The t6recvfrom(3NSL) routine receives a message and its security attributes. When t6new_attr(3NSL) is on, t6recvfrom(3NSL) receives security attributes only when the attributes in new_attrs have changed.


Note -

These routines are specific to sockets. For Transport Layer Interface (TLI), use t6last_attr(3NSL) in place of t6recvfrom(3NSL) and t6new_attr(3NSL); and t6set_endpt_default(3NSL) in place of t6sendto(3NSL).


ssize_t t6sendto(int sock,
	const char *msg,
	size_t len,
	int flags,
	const struct sockaddr *name,
	socklen_t namelen,
	const t6attr_t handle);

ssize_t t6recvfrom(int sock,
	void *buffer,
	size_t len,
	int flags,
	struct sockaddr *name,
	Psocklen_t namelenp,
	t6attr_t handle,
	t6mask_t *new_mask);

int t6new_attr(int fd, t6cmd_t cmd);