Home | History | Annotate | Download | only in libevent

Lines Matching refs:bufferevent

70   @section bufferevent I/O Buffers
78 Once initialized via bufferevent_new(), the bufferevent structure can be
83 When read enabled the bufferevent will try to read from the file descriptor
745 struct bufferevent;
746 typedef void (*evbuffercb)(struct bufferevent *, void *);
747 typedef void (*everrorcb)(struct bufferevent *, short what, void *);
755 struct bufferevent {
780 Create a new bufferevent.
788 Once initialized, the bufferevent structure can be used repeatedly with
791 When read enabled the bufferevent will try to read from the file descriptor
797 enabling the bufferevent for the first time.
809 @return a pointer to a newly allocated bufferevent struct, or NULL if an
813 struct bufferevent *bufferevent_new(int fd,
818 Assign a bufferevent to a specific event_base.
821 @param bufev a bufferevent struct returned by bufferevent_new()
825 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev);
829 Assign a priority to a bufferevent.
831 @param bufev a bufferevent struct
835 int bufferevent_priority_set(struct bufferevent *bufev, int pri);
839 Deallocate the storage associated with a bufferevent structure.
841 @param bufev the bufferevent structure to be freed.
843 void bufferevent_free(struct bufferevent *bufev);
847 Changes the callbacks for a bufferevent.
849 @param bufev the bufferevent object for which to change callbacks
860 void bufferevent_setcb(struct bufferevent *bufev,
864 Changes the file descriptor on which the bufferevent operates.
866 @param bufev the bufferevent object for which to change the file descriptor
869 void bufferevent_setfd(struct bufferevent *bufev, int fd);
872 Write data to a bufferevent buffer.
878 @param bufev the bufferevent to be written to
884 int bufferevent_write(struct bufferevent *bufev,
889 Write data from an evbuffer to a bufferevent buffer. The evbuffer is
892 @param bufev the bufferevent to be written to
897 int bufferevent_write_buffer(struct bufferevent *bufev, struct evbuffer *buf);
901 Read data from a bufferevent buffer.
905 @param bufev the bufferevent to be read from
910 size_t bufferevent_read(struct bufferevent *bufev, void *data, size_t size);
913 Enable a bufferevent.
915 @param bufev the bufferevent to be enabled
920 int bufferevent_enable(struct bufferevent *bufev, short event);
924 Disable a bufferevent.
926 @param bufev the bufferevent to be disabled
931 int bufferevent_disable(struct bufferevent *bufev, short event);
937 @param bufev the bufferevent to be modified
941 void bufferevent_settimeout(struct bufferevent *bufev,
948 On input, a bufferevent does not invoke the user read callback unless
955 @param bufev the bufferevent to be modified
961 void bufferevent_setwatermark(struct bufferevent *bufev, short events,