Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: Reading and Writing Serialized Data via Socket

  import java.net.*;
  import java.io.*;
  import java.util.Date;
public class SocketSerializable
{
    public static void main(String[] argv) {

Java: How to use DatagramSocket to send out and receive DatagramPacket

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.DatagramPacket;
import java.net.DatagramS

Java: read datagram packets using DatagramSocket and DatagramPacket classes

import java.net.DatagramPacket;
import java.net.DatagramSocket;
class Ex_DatagramSocket
 {
  public static void main(String args[]) throws Exception

Java: Show the document content type

import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Date;
public class WebType
{
	/***
	 *
	 * text/html, text/plain, image/gif,

Java: Receiving from a Multicast Group

import java.net.DatagramPacket;
import java.net.MulticastSocket;
import java.net.InetAddress;
public class MulticastRec
 {
  public static void main(

Java: How to download file from FTP server

import org.apache.commons.net.ftp.FTPClient;
import java.io.IOException;
import java.io.FileOutputStream;
public class FTPDownload
{
  public static

Java And Socket: How to compress the received data

import java.io.BufferedReader;
import java.io.FileReader;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.zip.GZIPInputStream;

Java: How to get the document Last-modified date

import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Date;
public class DateModif
{
  public static void main(String args[]) thro

Java: encrypt web traffic using Java Secure Socket Extension

import java.net.ServerSocket;
import javax.net.ssl.SSLServerSocketFactory;
public class SSLJSSEServer {
    static private ServerSocket getServerSocke

Java: Reading Textual Data using Socket

import java.net.*;
import java.io.*;
public class SocketReader
{
    public static void main(String[] argv) {
        String address= "localhost";

Java: Join a multicast group via NetworkInterface

import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.MulticastSocket;
import java.net.Sock

Java: Send data to a Multicast Group

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.MulticastSocket;
public class MulticastE

Java: How to get MAC address of a host

import java.net.InetAddress;
import java.net.NetworkInterface;
public class MacAddress
 {
  public static void main(String[] args) throws Excepti

Java: How to Ge twhen the web document was sent

import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Date;
public class Main{
  public static void main(String args[]) throws Exc

Java: How to create DatagramPacket from byte array

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
class Ex_Datagramme
 {
  public static void main(String