4b22b9337f359bfd063322244f5336cc7c6ffcfars/* -*- Mode: Java; tab-width: 4 -*-
4b22b9337f359bfd063322244f5336cc7c6ffcfars *
4b22b9337f359bfd063322244f5336cc7c6ffcfars * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
4b22b9337f359bfd063322244f5336cc7c6ffcfars *
4b22b9337f359bfd063322244f5336cc7c6ffcfars * Licensed under the Apache License, Version 2.0 (the "License");
4b22b9337f359bfd063322244f5336cc7c6ffcfars * you may not use this file except in compliance with the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * You may obtain a copy of the License at
4b22b9337f359bfd063322244f5336cc7c6ffcfars *
4b22b9337f359bfd063322244f5336cc7c6ffcfars * http://www.apache.org/licenses/LICENSE-2.0
4b22b9337f359bfd063322244f5336cc7c6ffcfars *
4b22b9337f359bfd063322244f5336cc7c6ffcfars * Unless required by applicable law or agreed to in writing, software
4b22b9337f359bfd063322244f5336cc7c6ffcfars * distributed under the License is distributed on an "AS IS" BASIS,
4b22b9337f359bfd063322244f5336cc7c6ffcfars * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4b22b9337f359bfd063322244f5336cc7c6ffcfars * See the License for the specific language governing permissions and
4b22b9337f359bfd063322244f5336cc7c6ffcfars * limitations under the License.
4b22b9337f359bfd063322244f5336cc7c6ffcfars */
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarspackage com.apple.dnssd;
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars/**
4b22b9337f359bfd063322244f5336cc7c6ffcfars Reference to a record returned by {@link DNSSDRegistration#addRecord}.<P>
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars Note: client is responsible for serializing access to these objects if
4b22b9337f359bfd063322244f5336cc7c6ffcfars they are shared between concurrent threads.
4b22b9337f359bfd063322244f5336cc7c6ffcfars*/
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfarspublic interface DNSRecord
4b22b9337f359bfd063322244f5336cc7c6ffcfars{
4b22b9337f359bfd063322244f5336cc7c6ffcfars /** Update a registered resource record.<P>
4b22b9337f359bfd063322244f5336cc7c6ffcfars The record must either be the primary txt record of a service registered via DNSSD.register(),
4b22b9337f359bfd063322244f5336cc7c6ffcfars or a record added to a registered service via addRecord().<P>
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars @param flags
4b22b9337f359bfd063322244f5336cc7c6ffcfars Currently unused, reserved for future use.
4b22b9337f359bfd063322244f5336cc7c6ffcfars <P>
4b22b9337f359bfd063322244f5336cc7c6ffcfars @param rData
4b22b9337f359bfd063322244f5336cc7c6ffcfars The new rdata to be contained in the updated resource record.
4b22b9337f359bfd063322244f5336cc7c6ffcfars <P>
4b22b9337f359bfd063322244f5336cc7c6ffcfars @param ttl
4b22b9337f359bfd063322244f5336cc7c6ffcfars The time to live of the updated resource record, in seconds.
4b22b9337f359bfd063322244f5336cc7c6ffcfars */
4b22b9337f359bfd063322244f5336cc7c6ffcfars void update( int flags, byte[] rData, int ttl)
4b22b9337f359bfd063322244f5336cc7c6ffcfars throws DNSSDException;
4b22b9337f359bfd063322244f5336cc7c6ffcfars
4b22b9337f359bfd063322244f5336cc7c6ffcfars /** Remove a registered resource record.<P>
4b22b9337f359bfd063322244f5336cc7c6ffcfars */
4b22b9337f359bfd063322244f5336cc7c6ffcfars void remove()
4b22b9337f359bfd063322244f5336cc7c6ffcfars throws DNSSDException;
4b22b9337f359bfd063322244f5336cc7c6ffcfars}
4b22b9337f359bfd063322244f5336cc7c6ffcfars