00001 /* 00002 Copyright © 1998. The Regents of the University of California (Regents). 00003 All Rights Reserved. 00004 00005 Written by Matt Wright, The Center for New Music and Audio Technologies, 00006 University of California, Berkeley. 00007 00008 Permission to use, copy, modify, distribute, and distribute modified versions 00009 of this software and its documentation without fee and without a signed 00010 licensing agreement, is hereby granted, provided that the above copyright 00011 notice, this paragraph and the following two paragraphs appear in all copies, 00012 modifications, and distributions. 00013 00014 IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, 00015 SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING 00016 OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF REGENTS HAS 00017 BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00018 00019 REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00020 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00021 PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED 00022 HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION TO PROVIDE 00023 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 00024 00025 The OpenSound Control WWW page is 00026 http://www.cnmat.berkeley.edu/OpenSoundControl 00027 */ 00028 00029 00030 /* 00031 NetworkReturnAddress.h 00032 00033 API that the OSC Kit uses to deal with network return addresses. You will 00034 fill in parts of this file and write NetworkReturnAddress.c to implement 00035 this API via whatever network services you use. 00036 00037 NB: This API is the only interface the Kit uses for dealing with network 00038 addresses, but of course the part of the application that accepts incoming 00039 packets needs to know about network return addresses so it can fill in the 00040 correct return address when it receives a packet. 00041 00042 Matt Wright, 00043 6/3/98 00044 */ 00045 00046 /* Return sizeof(struct NetworkReturnAddressStruct). */ 00047 int SizeOfNetworkReturnAddress(void); 00048 00049 /* Send a packet back to the client, or do nothing if addr==0 */ 00050 Boolean NetworkSendReturnMessage(NetworkReturnAddressPtr addr, 00051 int n, 00052 void *buf);
1.5.8