projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Complete the read function to return also the cached byte from the lwip
[bertos.git]
/
bertos
/
net
/
tcp_socket.h
diff --git
a/bertos/net/tcp_socket.h
b/bertos/net/tcp_socket.h
index 095321ee43ad8c122003ce77eba0520a466f7014..4022b4e6318bb8c8e3f508c7c7ee165547a8507c 100644
(file)
--- a/
bertos/net/tcp_socket.h
+++ b/
bertos/net/tcp_socket.h
@@
-59,7
+59,9
@@
typedef struct TcpSocket
struct ip_addr *local_addr;
struct ip_addr *remote_addr;
uint16_t port;
- uint16_t error;
+ int error;
+ size_t remaning_data_len;
+ struct netbuf *rx_buf_conn;
} TcpSocket;
#define KFT_TCPSOCKET MAKE_ID('T', 'S', 'C', 'K')