Tag Archives: udp sockets

Programming udp sockets in python

By | August 6, 2016

UDP sockets UDP or user datagram protocol is an alternative protocol to its more common counterpart TCP. UDP like TCP is a protocol for packet transfer from 1 host to another, but has some important differences. UDP is a connectionless and non-stream oriented protocol. It means a UDP server just catches incoming packets from any… Read More »

Udp socket programming in Java

By | August 6, 2016

Datagram sockets UDP sockets can be used in java with the DatagramSocket class. Server Let code a simple udp server that listens on a certain port number. /** Java ECHO server with UDP sockets example */ import java.io.*; import java.net.*; public class udp_server { public static void main(String args[]) { DatagramSocket sock = null; try… Read More »