Skip to content

Instantly share code, notes, and snippets.

View rohit-dua's full-sized avatar
:octocat:

Rohit Dua rohit-dua

:octocat:
View GitHub Profile
@rohit-dua
rohit-dua / LICENSE
Last active August 29, 2015 14:18
CLIENT-SERVER Communicator v1.0
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@rohit-dua
rohit-dua / my_socket.py
Last active April 17, 2016 17:37
Server and Client (Socket)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import sys
import threading
HOST = socket.gethostname()
PORT = 6000