Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Visual C Create a application to send a ping signal Tutorial

in this tutorial i will teach you how you can make a application that will send a ping signal to another computer.

Tutorial Details:


in this tutorial i will teach you how you can make a application that will send a ping signal to another computer.

Language: C# .net v2.0
start of my creating a windows application project.
now create one button(cmdPing)
double click on the button so you will create a event for it.
now the code we will use is quite simple so i hope you understand it, if not just ask in the forums and i will explain it more thurowly.
Ping fd = new Ping();
PingOptions options = new PingOptions();
PingReply reply;
options.DontFragment = true;

// Create a buffer of 32 bytes of data to be transmitted.
string data = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
byte[] buffer = Encoding.ASCII.GetBytes(data);
int timeout = 120;
reply = fd.Send("google.com", timeout, buffer, options);
MessageBox.Show("Address: " + reply.Address.ToString() + "\r\n"
+"RoundTrip time: " + reply.RoundtripTime + "\r\n"
+"Time to live: " + reply.Options.Ttl + "\r\n"
+"Don\'t fragment: " + reply.Options.DontFragment + "\r\n"
+"Buffer size: " + reply.Buffer.Length + "\r\n");
If you want to take a look at the source, just download the attachment.
Hope this sums it up!!


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Visual C Create a application to send a ping signal Tutorial

View Tutorial:
Visual C Create a application to send a ping signal Tutorial

Related Tutorials:

Displaying 1 - 50 of about 4747 Related Tutorials.

C/C++ Programming Books
;    Visual C++ 6 Unleashed Visual C++ 6 Unleashed provides comprehensive coverage of the core topics for Visual C++ 6 programming. This book skips the beginning level material
 
Objective C Tutorial
Objective C Tutorial,Objective C Tutorials Objective C Tutorial        ...;      In this Objective C Tutorial we
 
Apache Geronimo Application server Tutorial
new Java Messaging Services (JMS 1.1). It allows components to create, send... the examples using ant. C:\> cd hello1 C:\> ant This will build application... you need to create a WAR file, for single file deploymnet purposes. C:\> cd
 
Send E-mail in HTML
you a code that help you to send Email in HTML. In this Tutorial, the code create... Send Email in HTML Send E-mail in HTML     
 
Visual Basic Books
Visual Basic Books Visual Basic Books  ...; Sams Teach Yourself Visual Basic  Greg Perry is a speaker and writer on both the programming and the application
 
DataBase Connectivity with MySql in Visual Web JSF Application Using Net Beans IDE
Connectivity with MySql in Visual Web JSF Application Using Net Beans IDE...;     This Application illustrates how to create database connectivity with MySQL in visual web jsf application using java persistence
 
Send Mail using James Server
in database table. In this example we create a send mail class which is used to send... Send Mail using James Server Send Mail using James Server    
 
Factors responsible for GPS signal errors
Factors responsible for GPS signal errors Factors responsible for GPS signal errors      ... of signal delay. Calculating accurate co-ordinates of an object primarily depends
 
EasyEclipse for C and C++
and C++ development: Eclipse C and C++ Development Tool - Create, compile... Eclipse Plugin-Language EasyEclipse for C and C...;   EasyEclipse for C and C++ is all you need to start
 
Building a Simple EJB Application ?A Tutorial
workflow application)  Introduction In this tutorial we will create... Building a Simple EJB Application ?A Tutorial Building a Simple EJB Application ?A Tutorial     
 
Beginners Java Tutorial
In the section of Java Tutorial you will learn how to write java program to create... java Beginner,java Beginners,Beginning java,Beginners Java Tutorial,Java for beginners Beginners Java Tutorial
 
C and C++ books-page8
tutorials that introduce you to ODBC API programming in C. Each tutorial... how to write software in C. It is written primarily as a tutorial for beginners... C and C++ books-page8 C and C++ books-page8
 
Send Mail Bean
Send Mail Bean,Send Mail Send Mail Bean... application we have developed mailer bean that sends welcome email when a new... use Java Mail API to send emails. This is standard part of 
 
C and C++ books-page3
;       The C Language Tutorial... as a tutorial on the language, and aims at getting a reader new to C started as quickly... C and C++ books-page3 C and C++ books-page3
 
Beginners Java Tutorial
In the section of Java Tutorial you will learn how to write java program to create... java Beginner,java Beginners,Beginning java,Beginners Java Tutorial,Java for beginners Beginners Java Tutorial
 
Java Create Directory - Java Tutorial
Java Create Directory,Directory Creation in Java,How to Create Directory in Java Java Create Directory - Java Tutorial...: dir1/dir2/dir3 created C:\nisha> This program takes inputs to create
 
DB Visual Architect for Eclipse
DB Visual Architect for Eclipse DB Visual Architect...;      Extensive Database Coverage DB Visual..., PostgreSQL, MySQL and more. Intuitive GUI Design and Supreme Visual Editing Capabilities
 
Create JSF Application Using NetBeans IDE
Create JSF Application Using NetBeans IDE, NetBeans JSF Tutorial, JSF Using NetBeans Create JSF Application Using NetBeans... to create the JSF enabled application using NetBeans 6.1. Follow the following
 
Quartz Tutorial
Quartz Tutorial, Quartz Scheduler, Quartz Job Scheduler Quartz Tutorial        ...;      In this Quartz Tutorial you will how
 
Quartz Tutorial
Quartz Tutorial, Quartz Scheduler, Quartz Job Scheduler Quartz Tutorial        ...;      In this Quartz Tutorial you will how
 
Send Cookies in Servlets
. You can create cookie, read cookie and send cookie to the client browser. You can... Send Cookies in Servlets Send Cookies in Servlets...;    This section illustrates you how to send cookie
 
Simple JSF Hello Application
to follow to create own JSF application. In this example we will explain all you need... will follow the following steps to create this application : Create... of this application : Application Name: SimpleHelloByEnteringName Create and place
 
Objective C
Objective C Tutorial About the Objective C tutorial presented here... Objective C, Objective C programming language, Objective C Language Objective C     
 
Create URL using tag of JSTL Core tag library
Create URL using <c:url> tag of JSTL Core tag library Create URL using <c:url> tag of JSTL Core tag library...; Here in this example we are going to create a url according to the user's
 
MySQL Create Database
MySQL Create Database MySQL Create Database... Query Browser and MySQL Administrator, enabling the visual creation... browser and choosing the Create New Table option.  The MySQL Table Editor
 
Send HTML Mail with images
shows you how to send a html message using javamail api. A client create new... Send HTML Mail with images Send HTML Mail with images    
 
JSF Tutorial for Beginners
or in the next tier of application server(RMI-style).And it is possible to send... best solution is to create controls in server-side and somehow send... JSF TUTORIAL - INTRODUCING   JAVA  SERVER  FACES
 
MySQL Tutorial - SQL Tutorials
MySQL Tutorial,Free MySQL Tutorials,MySQL Programming Tutorials,Online MySQL Help for Beginners MySQL Tutorial - SQL Tutorials...;  Complete MySQL 5 Tutorial In this section you
 
J2EE Tutorial - Session Tracking Example
. In the UNIX  systems , C & later C++ reigned supreme. By 1990, Visual Basic... J2EE Tutorial - Session Tracking Example J2EE Tutorial - Session Tracking Example     
 
C and C++ books-page4
; The C tutorial-Brackets and Braces Some of the characters C uses... C and C++ books-page4 C and C++ books-page4... An array in C is a region of memory in which the elements (chars, ints, etc.) can
 
J2EE Tutorial - Session Tracking
J2EE Tutorial - Session Tracking J2EE Tutorial...;  greeter();      //  create instance... } //======================== Edit the above file in a dos window.  >set path=c:\windows\command;c
 
Rationale for GUI tutorial decisions
Microsoft Windows interfaces in C++. But they are harder than those in Visual... Java: Rationale for GUI tutorial decisions Table of Contents Rationale for GUI tutorial decisions Java
 
J2ME Tutorial
This example show to create the MIDlet application for user login . All MIDlet... Image Tutorial, we are going to show you how to create an Image with animation...; of application and the TimerTask class is used to create the counter
 
J2ME Tutorial
This example show to create the MIDlet application for user login . All MIDlet... Image Tutorial, we are going to show you how to create an Image with animation...; of application and the TimerTask class is used to create the counter
 
Java Building a Simple Web Service ? A Tutorial Tutorial
;    Introduction In this tutorial we will create a simple web...; Conclusion In this tutorial we learned how to create a simple web service... Building a Simple Web Service ? A Tutorial
 
Developing Distributed application using Enterprise Java Beans, J2EE Architecture, EJB Tutorial, WebLogic Tutorial.
Developing Distributed application using Enterprise Java Beans, J2EE Architecture, EJB Tutorial, WebLogic Tutorial... Two-tier application
 
Objective C Hello World
and execute the Objective C Hello World example on windows machine. Create first... Objective C Hello World Objective C Hello World...;   In this section I will show you how to develop Objective C
 
Learn Java Quickly, Quick Java Tutorial
development to big enterprises. It looks lot like C and C++ but has various extra... various web-based application in e-commerce and universities. The most important... source and the host system. Most programming language like C and Pascal translate
 
Building Web Application With Ant and Deploying on Jboss 3.0
will create example2.ear in c:\anttest\example2 directory. Deploying and testing... Building Web Application With Ant and Deploying on Jboss 3.0 Building Web Application With Ant and Deploying on Jboss 3.0
 
Creating Midlet Application For Login in J2ME
show to create the Midlet application for user login . All Midlet applications... Creating Midlet Application For Login in J2ME Creating Midlet Application For Login in J2ME   
 
Login and User Registration Application
; In this tutorial we will learn how to develop login application based on Struts.... Simplified Application Development This tutorial provides an outlook... This tutorial provides some simple steps for creating a website login application
 
Send multipart mail using java mail
Send multipart mail using java mail Send multipart mail using java mail...; This Example shows you how to send multipart mail using java mail. Multipart
 
Java Create Directory - Java Tutorial
Java Create Directory - Java Tutorial Java Create Directory - Java Tutorial       ...;       In the section of Java Tutorial
 
Ask C/C++ Questions online
Ask MySQL Questions online Ask C/C++ Questions...;    C and C++ are different programming language, but both the languages are popular among programmers. C is a general
 
Developing Simple Struts Tiles Application
Developing Simple Struts Tiles Application Developing Simple Struts Tiles Application     ... In this section  I will show you how to develop simple Struts Tiles Application
 
J2EE Tutorial - Java Bean
J2EE Tutorial - Java Bean J2EE Tutorial - Java Bean...;    Such a bean , may or may not have a visual representation..., there is no point in providing a visual represenation for a component which
 
C# Programming Books
;       Dissecting a C# Application... C# Programming Books C# Programming Books... an inside track on application development with a guided tour of the source
 
Welcome to the Jboss 3.0 Tutorial
Jboss 3.0 Tutorial,Online Jboss Tutorials,Free Jboss Resources - Java Tutorials Welcome to the Jboss 3.0 Tutorial...; Building Web Application With Ant and Deploying on Jboss 3.0 This lesson
 
J2EE Tutorial - RMI Example
; ================================= From a DOS window, create a folder as c:\greeter cd to c... J2EE Tutorial - RMI Example J2EE Tutorial - RMI... a specification. The required Interace is defined in a C-like language known
 
Developing JSP, Java and Configuration for Hello World Application
. The HelloWorld.jsp is view part of our application. Create "HelloWorld.jsp"... the application. Create struts.xml file and save it in the "struts2tutorial\WEB-INF... and source code: You can download the application and source code of the tutorial
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.