Skip to content

Hello, the code is written with the socket library and you can see how sockets can be used in your system's network.

Notifications You must be signed in to change notification settings

molanjad2011/socket-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Socket Example

این پروژه یک مثال ساده برای مفهوم سوکت در پایتون است.

  • شامل دو اسکریپت:

  • server.py: سرور TCP که روی لوکال‌هاست پیام‌ها را دریافت و دوباره ارسال می‌کند (echo server).

  • client.py: کلاینت TCP که به سرور وصل شده و پیام‌ها را ارسال و دریافت می‌کند.


ویژگی‌ها

  • آموزش پایه سوکت TCP در پایتون
  • ارتباط بین سرور و کلاینت روی لوکال‌هاست (127.0.0.1)
  • امکان ارسال و دریافت پیام

اجرا

سرور

python server.py

About

Hello, the code is written with the socket library and you can see how sockets can be used in your system's network.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages