From 7032fedd41386f8a0b779d234620b473d978f889 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期五, 17 七月 2020 17:43:18 +0800
Subject: [PATCH] req_rep finished

---
 queue/include/mod_socket.h |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/queue/include/mod_socket.h b/queue/include/mod_socket.h
index 27d076f..0ce74fd 100644
--- a/queue/include/mod_socket.h
+++ b/queue/include/mod_socket.h
@@ -1,12 +1,12 @@
 #ifndef __MOD_SOCKET_H__
 #define __MOD_SOCKET_H__
 
-#include "shm_socket.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-enum shm_mod_t
+enum socket_mod_t
 {
 	PULL_PUSH = 1,
 	REQ_REP = 2,
@@ -18,7 +18,23 @@
 };
 
 
+void *mod_open_socket(int mod);
 
+int mod_close_socket(void * _socket);
+
+int mod_socket_bind(void * _socket, int port);
+ 
+
+int mod_listen(void * _socket);
+
+
+int mod_connect(void * _socket, int port);
+
+int mod_send(void * _socket, void *buf, int size);
+
+int mod_recv(void * _socket, void **buf, int *size) ;
+
+void mod_free(void *buf);
 
 #ifdef __cplusplus
 }

--
Gitblit v1.8.0