Tip Bank

DevX - Software Development Resource

Closing an SSLEngine Connection

This tip shows you how to correctly close a SSLEngine connection. Notice that this is not a simple process, like closing a simple socket! SSLContext context …;SSLEngine engine …;ByteBuffer dummy

DevX - Software Development Resource

Developing a NIO-Based Client

This tip shows you how to develop a New I/O-based client. As you probably know, NIO offers many advantages such as speed and the ability to maintain a large number

DevX - Software Development Resource

Nested Functions in C++

Although C++ does not allow nested function declaration, you can simulate it using a structure with a static function: void outer(){ static int v1 = 5; int v2 = 5;

DevX - Software Development Resource

Stop Users from Right-Clicking on Your Web Site

To prevent your users from performing any of the other commands available by right-clicking on a web page in Internet Explorer, simply modify the opening &ltbody&gt tag of your HTML:

DevX - Software Development Resource

Developing a NIO Server

As you probably know, NIO offers many advantages?like speed and a large number of concurrent connections: import java.io.*;import java.net.*;import java.nio.*;import java.util.*;import java.nio.channels.*;import java.nio.charset.*;public class ServerNIO{ public static void main(String[] args){

DevX - Software Development Resource

Simplify Classic ASP Debugging in VS 2005

Like its predessor, VS 2005 does not allow you to debug classic ASP pages by default. Instead, you have to manually attach the ASP worker process (w3wp.exe). Follow these simple