Changeset 7458fea for examples/io
- Timestamp:
- Jul 27, 2020, 1:10:45 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5b15c4f
- Parents:
- 39fc03e
- Location:
- examples/io/simple
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/io/simple/server.c
r39fc03e r7458fea 1 /* 2 This is a simple server that users io_uring in blocking mode. 3 It demonstrates the bare minimum needed to use io_uring. 4 It uses liburing for simplicity. 5 */ 6 7 1 8 #include <assert.h> 2 9 #include <stdio.h> … … 16 23 char data[256]; 17 24 struct iovec iov = { data, 256 }; 18 struct msghdr msg = { "", 0, &iov, 1, NULL, 0, 0 };25 struct msghdr msg = { (void *)"", 0, &iov, 1, NULL, 0, 0 }; 19 26 static void async_read(int sock) { 20 27 /* get an sqe and fill in a READ operation */
Note: See TracChangeset
for help on using the changeset viewer.