receive a message from the server
This commit is contained in:
		
							parent
							
								
									d75885670f
								
							
						
					
					
						commit
						a86074f089
					
				| @ -3,4 +3,8 @@ import socket | |||||||
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | ||||||
| sock.connect(("127.0.0.1", 64999)) | sock.connect(("127.0.0.1", 64999)) | ||||||
| 
 | 
 | ||||||
|  | recv_limit = 1024 | ||||||
|  | 
 | ||||||
|  | received = sock.recv(recv_limit) | ||||||
|  | print(received) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user