mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-29 23:42:12 +08:00
33 lines
1.3 KiB
C
33 lines
1.3 KiB
C
#ifndef __PROTOBUF_SIMPLERPC_H_
|
|
#ifndef __PROTOBUF_SIMPLERPC_H_
|
|
|
|
#include <google/protobuf-c/protobuf.h>
|
|
|
|
SimplerpcContext *simplerpc_context_new (void);
|
|
void simplerpc_context_add_service
|
|
(SimplerpcServer *server,
|
|
const char *domain,
|
|
ProtobufCService *service);
|
|
|
|
SimplerpcServer * simplerpc_bind_ipv4 (int tcp_port,
|
|
SimplerpcBindIpv4Flags flags,
|
|
SimplerpcContext *context,
|
|
ProtobufCError **error);
|
|
SimplerpcServer * simplerpc_bind_local (const char *path,
|
|
SimplerpcContext *context,
|
|
ProtobufCError **error);
|
|
void simplerpc_server_destroy (SimplerpcServer *server);
|
|
|
|
|
|
|
|
SimplerpcClient *simplerpc_client_new_ipv4 (const uint8_t *ip_addr,
|
|
uint16_t port,
|
|
ProtobufCError **error);
|
|
|
|
ProtobufCService *simplerpc_client_new_service (SimplerpcClient *client,
|
|
const char *domain,
|
|
const ProtobufCServiceDescriptor *descriptor,
|
|
ProtobufCError **error);
|
|
|
|
#endif
|