chromium/third_party/grpc/src/src/core/lib/iomgr/socket_factory_posix.cc

//
//
// Copyright 2017 gRPC authors.
//
// 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
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// 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.
//
//

#include <grpc/support/port_platform.h>

#include "src/core/lib/iomgr/port.h"

#ifdef GRPC_POSIX_SOCKET_SOCKET_FACTORY

#include <grpc/impl/grpc_types.h>
#include <grpc/support/sync.h>

#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/iomgr/socket_factory_posix.h"

void grpc_socket_factory_init(grpc_socket_factory* factory,
                              const grpc_socket_factory_vtable* vtable) {}

int grpc_socket_factory_socket(grpc_socket_factory* factory, int domain,
                               int type, int protocol) {}

int grpc_socket_factory_bind(grpc_socket_factory* factory, int sockfd,
                             const grpc_resolved_address* addr) {}

int grpc_socket_factory_compare(grpc_socket_factory* a,
                                grpc_socket_factory* b) {}

grpc_socket_factory* grpc_socket_factory_ref(grpc_socket_factory* factory) {}

void grpc_socket_factory_unref(grpc_socket_factory* factory) {}

static void* socket_factory_arg_copy(void* p) {}

static void socket_factory_arg_destroy(void* p) {}

static int socket_factory_cmp(void* a, void* b) {}

static const grpc_arg_pointer_vtable socket_factory_arg_vtable =;

grpc_arg grpc_socket_factory_to_arg(grpc_socket_factory* factory) {}

#endif