Skip to content

Commit

Permalink
client program in serve_client
Browse files Browse the repository at this point in the history
python code for client side in server_client case
  • Loading branch information
mukund26 authored Oct 12, 2017
1 parent 5b47dec commit e527bc0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /usr/bin/python
import socket
host="127.0.0.1"
port=12345
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((host,port))
print("ENTER NO TO BE SENT:")
a=raw_input()
s.sendall(a)
data=s.recv(1024)
s.close()
print("RECIEVED DATA :",data)

0 comments on commit e527bc0

Please sign in to comment.