Changeset 22f94a4 for examples/io/simple/server.c
- Timestamp:
- Aug 11, 2020, 4:40:15 PM (5 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:
- 0d070ca
- Parents:
- 07d867b (diff), 129674b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
examples/io/simple/server.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
examples/io/simple/server.c
r07d867b r22f94a4 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.