Changeset 7458fea


Ignore:
Timestamp:
Jul 27, 2020, 1:10:45 PM (15 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
5b15c4f
Parents:
39fc03e
Message:

Added new example of io_uring server.
Commented purpose of existing example.

Location:
examples/io/simple
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • examples/io/simple/server.c

    r39fc03e r7458fea  
     1/*
     2This is a simple server that users io_uring in blocking mode.
     3It demonstrates the bare minimum needed to use io_uring.
     4It uses liburing for simplicity.
     5*/
     6
     7
    18#include <assert.h>
    29#include <stdio.h>
     
    1623char data[256];
    1724struct iovec iov = { data, 256 };
    18 struct msghdr msg = { "", 0, &iov, 1, NULL, 0, 0 };
     25struct msghdr msg = { (void *)"", 0, &iov, 1, NULL, 0, 0 };
    1926static void async_read(int sock) {
    2027        /* get an sqe and fill in a READ operation */
Note: See TracChangeset for help on using the changeset viewer.