Ignore:
Timestamp:
Nov 18, 2016, 2:58:30 PM (7 years ago)
Author:
coas-nagasima
Message:

uIPを更新
プロジェクトファイルを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uKadecot/trunk/uip/net/ip/psock.h

    r158 r262  
    111111  uint8_t *readptr;         /* Pointer to the next data to be read. */
    112112
    113   char *bufptr;          /* Pointer to the buffer used for buffering
     113  uint8_t *bufptr;          /* Pointer to the buffer used for buffering
    114114                            incoming data. */
    115115
     
    124124};
    125125
    126 void psock_init(struct psock *psock, char *buffer, unsigned int buffersize);
     126void psock_init(struct psock *psock, uint8_t *buffer, unsigned int buffersize);
    127127/**
    128128 * Initialize a protosocket.
     
    135135 * initialized
    136136 *
    137  * \param buffer (char *) A pointer to the input buffer for the
     137 * \param buffer (uint8_t *) A pointer to the input buffer for the
    138138 * protosocket.
    139139 *
     
    158158#define PSOCK_BEGIN(psock) PT_BEGIN(&((psock)->pt))
    159159
    160 PT_THREAD(psock_send(struct psock *psock, const char *buf, unsigned int len));
     160PT_THREAD(psock_send(struct psock *psock, const uint8_t *buf, unsigned int len));
    161161/**
    162162 * Send data.
     
    169169 * data is to be sent.
    170170 *
    171  * \param data (char *) A pointer to the data that is to be sent.
     171 * \param data (uint8_t *) A pointer to the data that is to be sent.
    172172 *
    173173 * \param datalen (unsigned int) The length of the data that is to be
     
    190190 */
    191191#define PSOCK_SEND_STR(psock, str)                      \
    192     PT_WAIT_THREAD(&((psock)->pt), psock_send(psock, str, strlen(str)))
     192  PT_WAIT_THREAD(&((psock)->pt), psock_send(psock, (uint8_t *)str, strlen(str)))
    193193
    194194PT_THREAD(psock_generator_send(struct psock *psock,
     
    257257 * This macro will block waiting for data and read the data into the
    258258 * input buffer specified with the call to PSOCK_INIT(). Data is only
    259  * read until the specifieed character appears in the data stream.
     259 * read until the specified character appears in the data stream.
    260260 *
    261261 * \param psock (struct psock *) A pointer to the protosocket from which
     
    353353   PSOCK_BEGIN(s);
    354354
    355    PSOCK_WAIT_UNTIL(s, PSOCK_NEWADATA(s) || timer_expired(t));
     355   PSOCK_WAIT_UNTIL(s, PSOCK_NEWDATA(s) || timer_expired(t));
    356356
    357357   if(PSOCK_NEWDATA(s)) {
     
    379379
    380380/** @} */
     381/** @} */
Note: See TracChangeset for help on using the changeset viewer.