Changeset 158 for uKadecot/trunk/uip/net/ip/psock.c
- Timestamp:
- Feb 20, 2016, 10:43:32 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uKadecot/trunk/uip/net/ip/psock.c
r157 r158 37 37 #include <string.h> 38 38 39 #include " uipopt.h"40 #include " psock.h"41 #include " uip.h"39 #include "net/ip/uipopt.h" 40 #include "net/ip/psock.h" 41 #include "net/ip/uip.h" 42 42 43 43 #define STATE_NONE 0 … … 74 74 static void 75 75 buf_setup(struct psock_buf *buf, 76 u 8_t *bufptr, u16_t bufsize)76 uint8_t *bufptr, uint16_t bufsize) 77 77 { 78 78 buf->ptr = bufptr; … … 80 80 } 81 81 /*---------------------------------------------------------------------------*/ 82 static u 8_t83 buf_bufdata(struct psock_buf *buf, u 16_t len,84 u 8_t **dataptr, u16_t *datalen)82 static uint8_t 83 buf_bufdata(struct psock_buf *buf, uint16_t len, 84 uint8_t **dataptr, uint16_t *datalen) 85 85 { 86 86 if(*datalen < buf->left) { … … 108 108 } 109 109 /*---------------------------------------------------------------------------*/ 110 static u 8_t111 buf_bufto(register struct psock_buf *buf, u 8_t endmarker,112 register u 8_t **dataptr, register u16_t *datalen)113 { 114 u 8_t c;110 static uint8_t 111 buf_bufto(register struct psock_buf *buf, uint8_t endmarker, 112 register uint8_t **dataptr, register uint16_t *datalen) 113 { 114 uint8_t c; 115 115 while(buf->left > 0 && *datalen > 0) { 116 116 c = *buf->ptr = **dataptr; … … 244 244 } 245 245 /*---------------------------------------------------------------------------*/ 246 u 16_t246 uint16_t 247 247 psock_datalen(struct psock *psock) 248 248 { … … 283 283 PT_WAIT_UNTIL(&psock->psockpt, psock_newdata(psock)); 284 284 psock->state = STATE_READ; 285 psock->readptr = (u 8_t *)uip_appdata;285 psock->readptr = (uint8_t *)uip_appdata; 286 286 psock->readlen = uip_datalen(); 287 287 } … … 311 311 printf("Waited for newdata\n"); 312 312 psock->state = STATE_READ; 313 psock->readptr = (u 8_t *)uip_appdata;313 psock->readptr = (uint8_t *)uip_appdata; 314 314 psock->readlen = uip_datalen(); 315 315 }
Note:
See TracChangeset
for help on using the changeset viewer.