Created
July 28, 2016 16:37
-
-
Save basavesh/bd89b1cb896f84c1ff1c9b5634e8b18b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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