Skip to content

Instantly share code, notes, and snippets.

@basavesh
Created July 28, 2016 16:37
Show Gist options
  • Save basavesh/bd89b1cb896f84c1ff1c9b5634e8b18b to your computer and use it in GitHub Desktop.
Save basavesh/bd89b1cb896f84c1ff1c9b5634e8b18b to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <event2/event.h>
#include <sys/socket.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int i;
const char **methods = event_get_supported_methods();
printf("Starting Libevent %s.\nAvailable methods are:\n", event_get_version());
for (i = 0; methods[i] != NULL; i++)
printf("\t%s\n", methods[i]);
//free(methods);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment