unimsg.3 (121330) | unimsg.3 (146532) |
---|---|
1.\" 2.\" Copyright (c) 2001-2003 3.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 12 unchanged lines hidden (view full) --- 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.\" Author: Hartmut Brandt <harti@freebsd.org> 28.\" | 1.\" 2.\" Copyright (c) 2001-2003 3.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 12 unchanged lines hidden (view full) --- 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.\" Author: Hartmut Brandt <harti@freebsd.org> 28.\" |
29.\" $Begemot: libunimsg/man/unimsg.3,v 1.2 2003/08/21 16:01:08 hbb Exp $ | 29.\" $Begemot: libunimsg/man/unimsg.3,v 1.3 2005/05/23 12:00:09 brandt_h Exp $ |
30.\" | 30.\" |
31.Dd August 23, 2002 32.Dt unimsg 3 | 31.Dd May 23, 2005 32.Dt UNIMSG 3 |
33.Os 34.Sh NAME 35.Nm uni_msg_len , 36.Nm uni_msg_space , 37.Nm uni_msg_leading , 38.Nm uni_msg_size , 39.Nm uni_msg_ensure , 40.Nm uni_msg_append , --- 146 unchanged lines hidden (view full) --- 187.Ar buflen 188bytes from the buffer pointed to by 189.Ar buf 190to the message. 191The function 192.Fn uni_msg_append8 193appends one byte to the message and the function 194.Fn uni_msg_append32 | 33.Os 34.Sh NAME 35.Nm uni_msg_len , 36.Nm uni_msg_space , 37.Nm uni_msg_leading , 38.Nm uni_msg_size , 39.Nm uni_msg_ensure , 40.Nm uni_msg_append , --- 146 unchanged lines hidden (view full) --- 187.Ar buflen 188bytes from the buffer pointed to by 189.Ar buf 190to the message. 191The function 192.Fn uni_msg_append8 193appends one byte to the message and the function 194.Fn uni_msg_append32 |
195appends a 32-bit value in network byte order to the message ( 196.Fa b_wptr | 195appends a 32-bit value in network byte order to the message 196.Fa ( b_wptr |
197needs not to be aligned). All three functions call 198.Fn uni_msg_ensure 199to make sure, that the buffer contents fit into the message. They 200return 0 on success and ENOMEM if the buffer is too small and the reallocation 201fails. In this case the message buffer is not changed. 202.Pp 203A number of functions can be used to retrieve parts of the message. 204The function --- 30 unchanged lines hidden --- | 197needs not to be aligned). All three functions call 198.Fn uni_msg_ensure 199to make sure, that the buffer contents fit into the message. They 200return 0 on success and ENOMEM if the buffer is too small and the reallocation 201fails. In this case the message buffer is not changed. 202.Pp 203A number of functions can be used to retrieve parts of the message. 204The function --- 30 unchanged lines hidden --- |