Coronet

Coronet project is a library which implements an epoll and coroutine based library that allows for async operations.
Download

Coronet Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Davide Libenzi
  • Publisher web site:
  • http://www.xmailserver.org/davide.html

Coronet Tags


Coronet Description

Coronet project is a library which implements an epoll and coroutine based library that allows for async operations. Coronet project is a library which implements an epoll and coroutine based library that allows for async operations over certain kinds of files. Any file that supports poll(2) and the O_NONBLOCK fcntl(2) flag can be hosted; this includes like sockets and pipes.The coronet library uses the epoll support available in the 2.6 series of Linux kernels, and the libpcl library for coroutine support.SYNOPSIS#include < coronet.h >int conet_init(void);void conet_cleanup(void);int conet_readsome(struct sk_conn *conn, void *buf, int n);int conet_read(struct sk_conn *conn, void *buf, int n);char *conet_readln(struct sk_conn *conn, int *lnsize);int conet_write(struct sk_conn *conn, void const *buf, int n);int conet_printf(struct sk_conn *conn, char const *fmt, ...);struct sk_conn *conet_new_conn(int sfd, coroutine_t co);void conet_close_conn(struct sk_conn *conn);int conet_set_timeo(struct sk_conn *conn, int timeo);int conet_mod_conn(struct sk_conn *conn, unsigned int events);int conet_socket(int domain, int type, int protocol);int conet_connect(struct sk_conn *conn, const struct sockaddr *serv_addr, socklen_t addrlen);int conet_accept(struct sk_conn *conn, struct sockaddr *addr, int *addrlen);struct sk_conn *conet_create_conn(int domain, int type, int protocol, coroutine_t co);int conet_events_wait(int timeo);int conet_events_dispatch(int evdmax)


Coronet Related Software