-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Line 41 in 01a0b90
| static void on_read(hio_t* io, void* buf, int readbytes) { |
代码修改成即可
static void on_read(hio_t* io, void* buf, int readbytes) {
printd("on_read fd=%d readbytes=%d\n", hio_fd(io), readbytes);
printd("< %s\n", (char*)buf);
uint8_t* tmp = buf;
if (readbytes > 4 && tmp[0] == 255 && tmp[1] == 244 && tmp[2] == 255 && tmp[3] == 253 && tmp[4] == 6)
{
hio_close(io);
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels