X-Git-Url: https://git.saurik.com/apple/mdnsresponder.git/blobdiff_plain/8abd123626ad1b60fee108d578e684e40d129d0a..51e746cfedf68920647bd7ab197adb37f67b5209:/mDNSPosix/ExampleClientApp.c?ds=inline diff --git a/mDNSPosix/ExampleClientApp.c b/mDNSPosix/ExampleClientApp.c index a0531bc..15bb86a 100644 --- a/mDNSPosix/ExampleClientApp.c +++ b/mDNSPosix/ExampleClientApp.c @@ -1,28 +1,40 @@ -/* - * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved. +/* -*- Mode: C; tab-width: 4 -*- * - * @APPLE_LICENSE_HEADER_START@ + * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * This file contains Original Code and/or Modifications of Original Code - * as defined in and that are subject to the Apple Public Source License - * Version 2.0 (the 'License'). You may not use this file except in - * compliance with the License. Please obtain a copy of the License at - * http://www.opensource.apple.com/apsl/ and read it before using this - * file. + * http://www.apache.org/licenses/LICENSE-2.0 * - * The Original Code and all software distributed under the License are - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. - * Please see the License for the specific language governing rights and + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and * limitations under the License. - * - * @APPLE_LICENSE_HEADER_END@ Change History (most recent first): $Log: ExampleClientApp.c,v $ +Revision 1.14 2006/08/14 23:24:46 cheshire +Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0 + +Revision 1.13 2006/02/23 23:38:43 cheshire + On FreeBSD 4 "arpa/inet.h" requires "netinet/in.h" be included first + +Revision 1.12 2004/11/30 22:37:00 cheshire +Update copyright dates and add "Mode: C; tab-width: 4" headers + +Revision 1.11 2004/09/17 01:08:53 cheshire +Renamed mDNSClientAPI.h to mDNSEmbeddedAPI.h + The name "mDNSClientAPI.h" is misleading to new developers looking at this code. The interfaces + declared in that file are ONLY appropriate to single-address-space embedded applications. + For clients on general-purpose computers, the interfaces defined in dns_sd.h should be used. + +Revision 1.10 2004/09/16 01:58:22 cheshire +Fix compiler warnings + Revision 1.9 2003/08/12 19:56:26 cheshire Update to APSL 2.0 @@ -42,12 +54,12 @@ Add log header #include // For strlen() etc. #include // For select() #include // For errno, EINTR -#include // For inet_addr() #include // For INADDR_NONE +#include // For inet_addr() #include // For gethostbyname() #include // For SIGINT, etc. -#include "mDNSClientAPI.h" // Defines the interface to the client layer above +#include "mDNSEmbeddedAPI.h" // Defines the interface to the client layer above #include "mDNSPosix.h" // Defines the specific types needed to run mDNS on this platform //******************************************************************************************* @@ -58,7 +70,7 @@ static volatile mDNSBool StopNow; mDNSlocal void HandleSIG(int signal) { (void)signal; // Unused - debugf(""); + debugf("%s",""); debugf("HandleSIG"); StopNow = mDNStrue; }