This project demonstrates a fundamental Client-Server communication using Python's built-in socket library. It covers the basic TCP connection lifecycle: binding, listening, accepting, connecting, and data transfer.
🛠 Features Server: Binds to a local port, listens for incoming connections, and sends a welcome message.
Client: Connects to the local server, receives the message, and prints it.
Protocol: Uses TCP (Transmission Control Protocol) for reliable communication.
🚀 How to Run To see the code in action, you must run the server first, then the client.
Start the Server:
Bash python server.py Start the Client: (Open a second terminal window)
Bash python client.py Python Socket Kütüphanesi - Temel Seviye Bu proje, Python'un yerleşik socket kütüphanesini kullanarak temel bir İstemci-Sunucu (Client-Server) iletişimini gösterir. TCP bağlantı yaşam döngüsünün temel adımlarını (bağlanma, dinleme, kabul etme ve veri transferi) içerir.
🛠 Özellikler Server (Sunucu): Yerel bir portu (5432) rezerve eder, bağlantı bekler ve bağlanan istemciye bir "Hoş geldin" mesajı gönderir.
Client (İstemci): Yerel sunucuya bağlanır, gelen mesajı alır ve ekrana yazdırır.
Protokol: Güvenilir iletişim için TCP protokolü kullanılmıştır.
🚀 Nasıl Çalıştırılır? Kodun çalışmasını görmek için önce sunucuyu, ardından istemciyi başlatmalısınız.
Sunucuyu Başlatın:
Bash python server.py İstemciyi Başlatın: (İkinci bir terminal penceresi açın)
Bash python client.py Teknik Notlar / Technical Notes Port: 5432
Host: 127.0.0.1 (Localhost)
Buffer Size: 1024 bytes