mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
Add socket_sendbuffer
This commit is contained in:
17
skynet-src/socket_buffer.h
Normal file
17
skynet-src/socket_buffer.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef socket_buffer_h
|
||||
#define socket_buffer_h
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define SOCKET_BUFFER_MEMORY 0
|
||||
#define SOCKET_BUFFER_OBJECT 1
|
||||
#define SOCKET_BUFFER_RAWPOINTER 2
|
||||
|
||||
struct socket_sendbuffer {
|
||||
int id;
|
||||
int type;
|
||||
const void *buffer;
|
||||
size_t sz;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user