mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-03 03:01:05 +03:00
io, net: Add TCP accept/connect/read/write
This commit is contained in:
1 parent
bcfd7a0753
commit
dfff930805
22 files changed
+1161
-510
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ make_pdu( unsigned int value ) {
|
||||
static unsigned char buf[20];
|
||||
int len, ls;
|
||||
|
||||
if ( ! ( pdu = coap_new_pdu() ) )
|
||||
if (!(pdu = coap_pdu_init(0, 0, 0, COAP_PDU_SIZE_DYNAMIC)))
|
||||
return NULL;
|
||||
|
||||
pdu->type = COAP_MESSAGE_NON;
|
||||
|
||||
Reference in new issue
Block a user