Skip to content

Instantly share code, notes, and snippets.

View roy2220's full-sized avatar
🎯
Focusing

Roy O'Young roy2220

🎯
Focusing
  • Guangzhou, China
View GitHub Profile
@roy2220
roy2220 / asyncio_ssl_example.py
Created May 25, 2018 04:08 — forked from messa/asyncio_ssl_example.py
Python asyncio + SSL TCP client/server example
#!/usr/bin/env python3
import asyncio
import multiprocessing
import os
import ssl
from time import sleep
port = 9000
@roy2220
roy2220 / tcp-nodelay-test.c
Created November 4, 2017 03:52 — forked from gregorycollins/tcp-nodelay-test.c
Is TCP_NODELAY inherited from listening sockets on your platform?
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/types.h>