Projects STRLCPY CVS Commits cd5ff186
🤬
  • ■ ■ ■ ■ ■ ■
    library.md
    skipped 42 lines
    43 43  ## Net
    44 44   
    45 45  - `close() => error`: close the socket.
    46  -- `read(out bytes) => int/error`: read once data from socket into parameter out and return read length,
     46 +- `read(out bytes) => int/error`: read data once from socket into parameter out and return read length,
    47 47   rendering it unusable in the future.
    48  -- `write(data bytes) => int/error`: write once data to the socket and return written length.
     48 +- `write(data bytes) => int/error`: write data once to the socket and return written length.
    49 49  - `set_read_deadline(seconds int) => error`: set read timeout for read function.
    50 50  - `set_write_deadline(seconds int) => error`: set write timeout for write function.
    51  -- `read_all(maxlen int) => bytes/error`: read the max length data from socket if possible,the maxlen parameter is optional.
     51 +- `read_all(maxlen int) => bytes/error`: read data from socket until the max length is reached,this parameter is optional.
    52 52  - `read_until(pattern string) => bytes/error`: read data from socket until the regex pattern is matched.
    53 53   
    54 54  - `write_all(data bytes) => int/error`: write all data to the socket if possible and return written length.
    skipped 1 lines
Please wait...
Page is in error, reload to recover