Why don't ppl use threads for serversockets? They place them in main and any
such places. Are there any drawbacks to this?
listenSocket = new ServerSocket(port);
while(true) {
Socket clientSocket = listenSocket.accept();
etc.
}
|
Results 1 to 2 of 2
Thread: ServerSocket questionThreaded View
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S. Wed Yourself to UML with the Power of Associations Microsoft to Add AJAX Capabilities to ASP.NET IBM's Cloudscape Versus MySQL | ||||||||||||||||||||||||||||||||||
![]() | |||||
|
| |||||
![]() |
Bookmarks