Ignore:
Timestamp:
Apr 23, 2020, 4:21:49 PM (20 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
ecf6b46
Parents:
8962722
Message:

Removed the async_ prefix of I/O functions

File:
1 edited

Legend:

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

    r8962722 r2489d31  
    5151
    5252//----------
    53 extern ssize_t async_recvmsg(int sockfd, struct msghdr *msg, int flags);
    54 extern int async_accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
    55 extern int async_close(int fd);
     53extern ssize_t cfa_recvmsg(int sockfd, struct msghdr *msg, int flags);
     54extern int cfa_accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
     55extern int cfa_close(int fd);
    5656
    5757//----------
     
    8888        struct sockaddr_in cli_addr;
    8989        __socklen_t clilen = sizeof(cli_addr);
    90         int newsock = async_accept4(sock, (struct sockaddr *) &cli_addr, &clilen, 0);
     90        int newsock = cfa_accept4(sock, (struct sockaddr *) &cli_addr, &clilen, 0);
    9191        if (newsock < 0) {
    9292                error( printer, "accept", -newsock);
     
    9797
    9898        while(1) {
    99                 int res = async_recvmsg(newsock, &msg, 0);
     99                int res = cfa_recvmsg(newsock, &msg, 0);
    100100                if(res == 0) break;
    101101                if(res < 0) {
     
    107107        }
    108108
    109         ret = async_close(newsock);
     109        ret = cfa_close(newsock);
    110110      if(ret < 0) {
    111111            error( printer, "close new", -ret);
     
    113113      }
    114114
    115         ret = async_close(sock);
     115        ret = cfa_close(sock);
    116116      if(ret < 0) {
    117117            error( printer, "close old", -ret);
Note: See TracChangeset for help on using the changeset viewer.