|
Server Actions |
Instantiate a ServerSocket object |
|
|
import java.net.ServerSocket;
import java.net.Socket;
import java.io.IOException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
ServerSocket acceptSock; // Declare the ServerSocket
// Instantiate a ServerSocket using constructor that takes only the port number
try {
acceptSock = new ServerSocket(13214);
}
catch(IOException ioe) {
System.out.println("Error opening server socket: " + ioe.getMessage());
return;
}
|
| See the "Links" link above to find out the sources of the proposed informations Pascal Vuylsteker / eScience / Computer Science / ANU |
Last modified: 22/3/2005
TOC - Print |
Send your comments at : <pvk@vuylsteker.net> |