UDP socket programming in C

UDP Socket Programming in C language

UDP socket programming in C Client-side program: #include<stdio.h> #include<stdlib.h> #include<sys/socket.h> #include<netinet/in.h> #include<string.h> #include<netdb.h> int main(int argc, char * argv[]) { int sockfd,bindfd,fromlen,n; struct sockaddr_in server, from; struct hostent *hp; char buff[50]; if(argc<3) { printf(“insufficient argument”); exit(1); } sockfd=socket(AF_INET,SOCK_DGRAM,0); if(sockfd<0) { printf(“could not create the socket.”); exit(1); } server.sin_family=AF_INET; server.sin_port=htons(atoi(argv[2])); hp=gethostbyname(argv[1]); memcpy((char*)hp->h_addr,(char *)&server.sin_addr.s_addr,hp->h_length); fromlen=sizeof(server); printf(“Enter the […]

Continue Reading
PHP tutorial in 2020

PHP beginner tutorials – zero to hero PHP course 2020

PHP beginner tutorials in 2020 | PHP beginner tutorials What is PHP? PHP beginner tutorials | PHP stands for Hypertext Preprocessor. PHP is a most powerful and widely-used open-source server-side scripting language. PHP scripting language is used to write dynamically generated web pages. PHP scripts are executed on the web servers and the final result […]

Continue Reading
lets encrypt free ssl.

How To Install Free SSL Certificate On The Website – Let’s Encrypt

Install free SSL certification on your website for free. Install Free SSL Certificate | Security Sockets Layer (SSL) is a security protocol that helps to create encryption between browsers and web servers. SSL ensures all the data remains encrypted and confidential. It is necessary to install SSL because of illegal activities are being increased these days […]

Continue Reading

Corona virus Worldometers updates world wide 2019 – 2020

Corona virus Worldometers updates live by worldometer Corona virus Worldometers updates | Coronavirus disease is an infectious disease which is started to spreading since 2019. Coronavirus disease is also called COVID-19. Symptoms of COVID-19 High fever cough Shortness of Breath These are some common symptoms of coronavirus disease. Safety tips Wash your hands frequently. avoid […]

Continue Reading

Ascending and Descending order in C programming.

Program to sort array in ascending and Descending order using C programming. Sort array in ascending and descending order Hello friends, In this article we will learn to write program to sort array in ascending and descending order using C programming Language using bubble sort Program to sort array in ascending order in C #include<stdio.h> […]

Continue Reading

Complete Selenium Tutorial for beginner to Expert in 2020

Complete Selenium Tutorial for beginner | In this article, we are going to learn Selenium Basic Programs.  Selenium in 2020   1. Program to open browser and website using selenium   package automationHRM; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class FirstProgram { public void runBrowser () { System.setProperty(“webdriver.gecko.driver”, “D:\SeleniumLib\geckodriver.exe”); // set path of geckodriver WebDriver driver […]

Continue Reading