Skip to content

Instantly share code, notes, and snippets.

View ayush1999's full-sized avatar
🎯
Focusing

Ayush Shridhar ayush1999

🎯
Focusing
View GitHub Profile
@ayush1999
ayush1999 / socket_client.py
Created August 8, 2017 16:13 — forked from tuxmartin/socket_client.py
Python socket - server and client example (push notifications)
import socket
host = 'localhost'
port = 1234
buf = 1024
clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clientsocket.connect((host, port))
print "Sending 'test1\\n'"