Nooh Islam
@NoohIslam
0
getrich.shMakes you get rich
1
0
0
0
Socket Server
Socket Server
Hello everybody!
This is a socket server.
Socket is made for communicating and making chat apps.
Here is the line for the client:
Here is the code:
import socket
s = socket.socket()
print("Socket created")
s.bind(('localhost', 8080))
s.listen(3)
print("Waiting..")
while True:
c, addr = s.accept()
name = c.recv(1024).decode()
print('Connected with', addr, name)
print(c.recv(1024))
c.send(bytes('Hi!', 'utf-8'))
c.close()
First, open python idle
paste code.
Open cmd.
Type path then \server.py.
Then, do the same thing with the client.
Bye!
20
2
0
0
secret messagerSecret messenger
5
0
0
0
Nine livesNine lives: python game
2
0
0
0
Password pickerSecure password picker.
1
0
0
1
3D rectangle3d rectangle
9
4
1
2
2
SimpleLoginPageA webpage about a simple login page.
45
6
2