Skip to content

Instantly share code, notes, and snippets.

View A-Costa's full-sized avatar

Alberto Costa A-Costa

View GitHub Profile
@A-Costa
A-Costa / receiver.c
Created July 26, 2016 22:36
UDP Multichat
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define porta_locale 7777
@A-Costa
A-Costa / TCPClient.c
Last active July 26, 2016 20:52
udp sender and receiver with ack
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#define port 7779