Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-17 08:35:03

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one
0003  * or more contributor license agreements. See the NOTICE file
0004  * distributed with this work for additional information
0005  * regarding copyright ownership. The ASF licenses this file
0006  * to you under the Apache License, Version 2.0 (the
0007  * "License"); you may not use this file except in compliance
0008  * with the License. You may obtain a copy of the License at
0009  *
0010  *   http://www.apache.org/licenses/LICENSE-2.0
0011  *
0012  * Unless required by applicable law or agreed to in writing,
0013  * software distributed under the License is distributed on an
0014  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0015  * KIND, either express or implied. See the License for the
0016  * specific language governing permissions and limitations
0017  * under the License.
0018  *
0019  * @author: David Suárez <david.sephirot@gmail.com>
0020  */
0021 
0022 #ifndef THRIFT_SOCKETCOMMON_H
0023 #define THRIFT_SOCKETCOMMON_H
0024 
0025 #include <thrift/thrift-config.h>
0026 
0027 #ifdef HAVE_UNISTD_H
0028 #include <unistd.h>
0029 #endif
0030 #ifdef HAVE_SYS_UN_H
0031 #include <sys/un.h>
0032 #endif
0033 #ifdef HAVE_AF_UNIX_H
0034 #include <afunix.h>
0035 #endif
0036 #ifdef HAVE_SYS_SOCKET_H
0037 #include <sys/socket.h>
0038 #endif
0039 
0040 #include <string>
0041 
0042 namespace apache {
0043 namespace thrift {
0044 namespace transport {
0045 
0046 socklen_t fillUnixSocketAddr(struct sockaddr_un& address, std::string& path);
0047 
0048 }
0049 }
0050 } // apache::thrift::transport
0051 
0052 #endif //THRIFT_SOCKETCOMMON_H