devxlogo

August 14, 1999

Use DatagramSocket to See Who’s Calling Your Server

You can use java.net.DatagramSocket class to identify a remote machine that is accessing your server. The class java.net.DatagramSocket represents a socket for sending and receiving datagram packets. A datagram socket

Your Options With Sockets

JDK 1.1 offers enhanced control over a socket’s behavior through some socket options. These options are: SO_TIMEOUT, which you can access through accessor methods: public synchronized int getSoTimeout() throws SocketException

Formatting Date and Time Values

VBScript has a built in function that allows you to convert a general date (MM/DD/YY HH:MM:SS AM/PM) into numerous other formats. The other formats are long date, short date, long

Sort Using a JavaScript Array

Javascript Arrays are quite versatile. One of its built-in features is the sort method. When an array is populated, you can simply call the sort method to sort by text.