Multi-Tasking Sockets


This article is about a client/server multi-threaded socket class. The thread is optional since the developer is still responsible to decide if needs it. There are other Socket classes here and other places over the Internet but none of them can provide feedback (event detection) to your application like this one does. It provides you with the following events detection: connection established, connection dropped, connection failed and data reception (including 0 byte packet).

This article presents a new socket class which supports both TCP and UDP communication. But it provides some advantages compared to other classes that you may find here or on some other Socket Programming articles. First of all, this class doesn't have any limitation like the need to provide a window handle to be used. This limitation is bad if all you want is a simple console application. So this library doesn't have such a limitation. It also provides threading support automatically for you, which handles the socket connection and disconnection to a peer. It also features some options not yet found in any socket classes that I have seen so far. It supports both client and server sockets.

A server socket can be referred as to a socket that can accept many connections. And a client socket is a socket that is connected to server socket. You may still use this class to communicate between two applications without establishing a connection. In the latter case, you will want to create two UDP server sockets (one for each application). This class also helps reduce coding need to create chat-like applications and IPC (Inter-Process Communication) between two or more applications (processes). Reliable communication between two peers is also supported with TCP/IP with error handling. You may want to use the smart addressing operation to control the destination of the data being transmitted (UDP only). TCP operation of this class deals only with communication between two peers




  • Processor : Intel Pentium IV
  • RAM : 128 MB
  • Hard Disk : 20GB


  • Operating System : Windows 98,2000,xp
  • Tools : jdk1.5.0
  • Technologies : Java Swings, JDBC, Servlets











Related Projects : Bluetooth Home Automation,Creepy Crawler System,ATM Reporting system,E-Mail Campaign System,Mingle Box,Trade Service Engine,SMTP Mail Server,Virtual Shopping,Value card – Smart card based Loyalty,Universal Web Based File Coordinator,UA Portal,Trackerz,Survey Logics,Pro-net Communication,Implementation of Security in WAN,Implementation of OSPF on IPV6,Support Vector Machines For Face Recognition,Web based Applications for Insurance Services,Cold Boot Attack,Virtual Class Rooms,Electronic Mail Server,SUDOKU,Bluetooth Hotspot ,Result Alert System With E-mail and SMS,Bug Tracking System,Partial Face Recognition Using Core features Of The Face,Face Recognition in e-attendance,Online Examination System,Chat Server,Bandwidth-Allocation-for-Distributed-Algorithm

<< back


All rights reserved ® Copyright © V2computers 2007 through 2014