Skip to content

Instantly share code, notes, and snippets.

View demirten's full-sized avatar

Murat Demirten demirten

View GitHub Profile
@demirten
demirten / ipv6only.c
Created June 4, 2018 13:36
Ipv6 only bind example with libevent
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <event2/event.h>
#include <event2/listener.h>
#include <event2/bufferevent.h>
#define DEFAULT_LISTEN_PORT 5555

Keybase proof

I hereby claim:

  • I am demirten on github.
  • I am demirten (https://keybase.io/demirten) on keybase.
  • I have a public key whose fingerprint is A9BB 2D83 7409 34F0 1787 E87C 2E6B 85F6 CE51 BFF3

To claim this, I am signing this object: