ithewei 6 年之前
父节点
当前提交
04c298403d
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      examples/server.cpp

+ 0 - 4
examples/server.cpp

@@ -22,10 +22,6 @@ void on_close(hio_t* io) {
     printf("on_close fd=%d error=%d\n", io->fd, io->error);
     printf("on_close fd=%d error=%d\n", io->fd, io->error);
 }
 }
 
 
-void on_write(hio_t* io, const void* buf, int writebytes, void* userdata) {
-    printf("on_write fd=%d writebytes=%d\n", io->fd, writebytes);
-}
-
 void on_read(hio_t* io, void* buf, int readbytes) {
 void on_read(hio_t* io, void* buf, int readbytes) {
     printf("on_read fd=%d readbytes=%d\n", io->fd, readbytes);
     printf("on_read fd=%d readbytes=%d\n", io->fd, readbytes);
     printf("< %s\n", buf);
     printf("< %s\n", buf);