]> git.meshlink.io Git - meshlink-tiny/blobdiff - src/utcp_priv.h
Remove the UTCP send and receive buffers.
[meshlink-tiny] / src / utcp_priv.h
index 602140acb65e87e2d5c861c17edd79ca5661bae4..2c41349a00c113292270870f064eae5a40859c61 100644 (file)
 #define AUX_SAK 3
 #define AUX_TIMESTAMP 4
 
-#define DEFAULT_SNDBUFSIZE 0
-#define DEFAULT_MAXSNDBUFSIZE 131072
-#define DEFAULT_RCVBUFSIZE 0
-#define DEFAULT_MAXRCVBUFSIZE 131072
-
 #define MAX_UNRELIABLE_SIZE 16777215
 #define DEFAULT_MTU 1000
 
@@ -88,15 +83,6 @@ static const char *strstate[] __attribute__((unused)) = {
        [TIME_WAIT] = "TIME_WAIT"
 };
 
-struct buffer {
-       char *data;
-       uint32_t offset;
-       uint32_t used;
-       uint32_t size;
-       uint32_t maxsize;
-       bool external;
-};
-
 struct utcp_connection {
        void *priv;
        struct utcp *utcp;
@@ -145,12 +131,6 @@ struct utcp_connection {
        uint32_t rttvar; // usec
        uint32_t rto; // usec
 
-       // Buffers
-
-       uint32_t prev_free;
-       struct buffer sndbuf;
-       struct buffer rcvbuf;
-
        // Per-socket options
 
        bool nodelay;