Files
skynet/skynet_server.h
2012-08-03 18:20:05 +08:00

19 lines
686 B
C

#ifndef SKYNET_SERVER_H
#define SKYNET_SERVER_H
#include <stdint.h>
struct skynet_context;
struct skynet_message;
struct skynet_context * skynet_context_new(const char * name, const char * parm);
void skynet_context_grab(struct skynet_context *);
struct skynet_context * skynet_context_release(struct skynet_context *);
uint32_t skynet_context_handle(struct skynet_context *);
void skynet_context_init(struct skynet_context *, uint32_t handle);
void skynet_context_push(struct skynet_context *, struct skynet_message *message);
int skynet_context_pop(struct skynet_context *, struct skynet_message *message);
int skynet_context_message_dispatch(void); // return 1 when block
#endif