Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Thursday, December 1, 2011

Sending file through UDP Socket


Introduction
User Datagram Protocol or UDP is a simple protocol. This protocol is unreliable - when a data packet is sent, it cannot be not known if it will reach its destination or not. There is no acknowledgement, retransmission, or timeout. When multiple data is sent at once, the order which they arrive cannot be predicted. They might be out of order. The data that is sent with sequence 1,2,3 might be recieved as 2,3,1. So, sending files through UDP socket is a bit difficult.

Sunday, November 27, 2011

Menghantar file menggunakan Soket UDP

Pengenalan
User Datagram Protocol atau UDP merupakan protokol yang ringkas. Protokol ini tidak boleh dipercayai - Apabila data dihantar, ia tidak dapat dipastikan sama ada data yang dihantar itu tadi sampai ataupun tidak. Pada protokol ini, tiada konsep pengakuan(acknowledgement), penghantaran semula(retransmission) ataupun masa tamat(timeout). Apabila data dihantar, kemungkinan data yang sampai tidak tersusun. Data dalam susunan 1,2,3 dihantar kemungkinan diterima dalam susunan 2,3,1. Oleh itu, penghantaran fail menggunakan protokol UDP adalah sedikit susah.