add block connect for harbor

This commit is contained in:
云风
2013-09-10 23:21:30 +08:00
parent a15b93cbcf
commit 80fe468e8e
7 changed files with 115 additions and 108 deletions

View File

@@ -24,6 +24,7 @@ int skynet_socket_poll();
int skynet_socket_send(struct skynet_context *ctx, int id, void *buffer, int sz);
int skynet_socket_listen(struct skynet_context *ctx, const char *host, int port, int backlog);
int skynet_socket_connect(struct skynet_context *ctx, const char *host, int port);
int skynet_socket_block_connect(struct skynet_context *ctx, const char *host, int port);
int skynet_socket_bind(struct skynet_context *ctx, int fd);
void skynet_socket_close(struct skynet_context *ctx, int id);
void skynet_socket_start(struct skynet_context *ctx, int id);