mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
change source dir
This commit is contained in:
21
skynet-src/skynet_harbor.h
Normal file
21
skynet-src/skynet_harbor.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef SKYNET_HARBOR_H
|
||||
#define SKYNET_HARBOR_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct skynet_message;
|
||||
|
||||
void skynet_harbor_send(const char *name, uint32_t destination, struct skynet_message * message);
|
||||
void skynet_harbor_register(const char *name, uint32_t handle);
|
||||
|
||||
// remote message is diffrent from local message.
|
||||
// We must use these api to open and close message , see skynet_server.c
|
||||
int skynet_harbor_message_isremote(uint32_t handle);
|
||||
void * skynet_harbor_message_open(struct skynet_message * message);
|
||||
void skynet_harbor_message_close(struct skynet_message * message);
|
||||
|
||||
// harbor worker thread
|
||||
void * skynet_harbor_dispatch_thread(void *ud);
|
||||
void skynet_harbor_init(void * context, const char * master, const char *local, int harbor);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user