1*472cd20dSToomas Soome /* -*- Mode: C; tab-width: 4; c-file-style: "bsd"; c-basic-offset: 4; fill-column: 108; indent-tabs-mode: nil; -*- 2c65ebfc7SToomas Soome * 3c65ebfc7SToomas Soome * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. 4c65ebfc7SToomas Soome * 5c65ebfc7SToomas Soome * Licensed under the Apache License, Version 2.0 (the "License"); 6c65ebfc7SToomas Soome * you may not use this file except in compliance with the License. 7c65ebfc7SToomas Soome * You may obtain a copy of the License at 8c65ebfc7SToomas Soome * 9c65ebfc7SToomas Soome * http://www.apache.org/licenses/LICENSE-2.0 10c65ebfc7SToomas Soome * 11c65ebfc7SToomas Soome * Unless required by applicable law or agreed to in writing, software 12c65ebfc7SToomas Soome * distributed under the License is distributed on an "AS IS" BASIS, 13c65ebfc7SToomas Soome * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14c65ebfc7SToomas Soome * See the License for the specific language governing permissions and 15c65ebfc7SToomas Soome * limitations under the License. 16c65ebfc7SToomas Soome */ 17c65ebfc7SToomas Soome 18*472cd20dSToomas Soome #ifndef __PLATFORM_COMMON_H 19*472cd20dSToomas Soome #define __PLATFORM_COMMON_H 20*472cd20dSToomas Soome extern void ReadDDNSSettingsFromConfFile(mDNS *const m, const char *const filename, 21*472cd20dSToomas Soome domainname *const hostname, domainname *const domain, 22*472cd20dSToomas Soome mDNSBool *DomainDiscoveryDisabled); 23*472cd20dSToomas Soome extern mDNSBool mDNSPosixTCPSocketSetup(int *fd, mDNSAddr_Type addrType, mDNSIPPort *port, mDNSIPPort *outTcpPort); 24*472cd20dSToomas Soome extern TCPSocket *mDNSPosixDoTCPListenCallback(int fd, mDNSAddr_Type addressType, TCPSocketFlags socketFlags, 25*472cd20dSToomas Soome TCPAcceptedCallback callback, void *context); 26*472cd20dSToomas Soome extern mDNSBool mDNSPosixTCPListen(int *fd, mDNSAddr_Type addrtype, mDNSIPPort *port, mDNSAddr *addr, 27*472cd20dSToomas Soome mDNSBool reuseAddr, int queueLength); 28*472cd20dSToomas Soome extern long mDNSPosixReadTCP(int fd, void *buf, unsigned long buflen, mDNSBool *closed); 29*472cd20dSToomas Soome extern long mDNSPosixWriteTCP(int fd, const char *msg, unsigned long len); 30*472cd20dSToomas Soome #endif 31