set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf
Let Us C by Yashvant P kanetkar is a popular introductory book to the world of C programming language.
Read moreIn data transmission and telecommunication, bit stuffing is the insertion of non information bits into data. Stuffed bits should not be confused with overhead bits.
Applications:Controller area network,Universal serial bus,HDLC
Click here to view sender programimport java.io.*; class ping { public static void main(String a[])throws Exception { String IP; String cmd; BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
import java.io.*; import java.net.InetAddress; public class ipadd{ public static void main(String[] args) { boolean flag=false; String str=""; try {
The Java Remote Method Invocation (Java RMI) is a Java API that performs the object-oriented equivalent of remote procedure calls (RPC), with support for direct transfer of serialized Java classes and distributed garbage collection.
import java.io.*; import java.net.*; import java.util.*; public class UdpReceiver { public static void main(String args[])throws IOException { try { DataInputStream dis=new DataInputStream(System.in); byte[] rdata=new byte[1024];
import java.applet.*; import java.awt.*; import java.awt.event.*; import java.lang.Math; public class Brush2 extends Applet implements MouseMotionListener { int width, height; Image backbuffer; Graphics backg; int mx, my; double t = 0;
Read more...import java.applet.*; import java.awt.*; import java.awt.event.*; public class Brush1 extends Applet implements MouseMotionListener { int width, height; Image backbuffer; Graphics backg; public void init() { width = getSize().width; height = getSize().height;
Read more...import java.applet.*; import java.awt.*; import java.awt.event.*; public class cardlayout extends Applet implements ActionListener,MouseListener { Button win,other; Checkbox win98,winnt,solaris,mac; Panel oscards; CardLayout cardlo;
Read more...import java.applet.*; import java.awt.*; import java.awt.event.*; public class scrolldemo extends Applet implements AdjustmentListener,MouseMotionListener { Scrollbar VB,HB; String msg=" "; public void init() { int wh=Integer.parseInt(getParameter("width")); int ht=Integer.parseInt(getParameter("height"));
Read more...import java.applet.* import java.awt.* import java.awt.event.*; /*applet code="change.class" width=600 height=600> public class change extends Applet implements MouseListener public void init() addMouseListener(this)
Read more...import java.applet.*; import java.awt.*; public class stickman extends Applet { public void init() //initialisation { setBackground(Color.black); setForeground(Color.red); }
Read more...import java.applet.*; import java.awt.*; import java.awt.event.*; class sampledialog extends Dialog implements ActionListener { sampledialog(Frame parent,String title) { super(parent,title,false); setLayout(new FlowLayout()); setSize(500,500); Button b1=new Button("click!"); add(b1); b1.addActionListener(this); }
Read more..import java.applet.*; import java.awt.*; import java.awt.event.*; class menuframe extends Frame { public menuframe(String title) { super(title); mywindowadapter adapter=new mywindowadapter(this); addWindowListener(adapter);
Read more...