Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Net/TcpServerSocket.hpp

Go to the documentation of this file.
00001 // Wolf for J2K Library
00002 // LGPL Licensed.
00003 // http://j2k.sourceforge.net/
00004 // Revision #1: Fred P. - Oct 2nd, 2001
00005 
00006 #ifndef __J2K__NET__TCPSERVERSOCKET_HPP__
00007 #define __J2K__NET__TCPSERVERSOCKET_HPP__
00008 
00009 //This class is the java.net ServerSocket class. It implements Listening TCP/IP stream sockets.
00010 
00011 
00012 #include <j2k/Net/include.hpp>
00013 #include <j2k/Net/ServerSocket.hpp>
00014 #include <j2k/Net/InetAddress.hpp>
00015 #include <j2k/Net/TcpSocket.hpp>
00016 
00017 class TcpServerSocket : public ServerSocket {
00018 
00019  public:
00020   TcpServerSocket(int port = 0, int backlog = 4) throw(int);
00021   TcpServerSocket(TcpServerSocket &original) throw(int);   
00022   TcpServerSocket(InetAddress& address, int port = 0, int backlog = 4) throw(int); //Let system select port by default;
00023 
00024 
00025   InetAddress getInetAddress();
00026   int getLocalPort();
00027 
00028 //  TcpSocket* accept() throw(int);
00029 
00030   
00031   //return 0 on success, set errno and return -1 on fail.
00032 
00033   int setSoTimeout(int timeout);
00034   
00035   // remember to check errno on fail
00036 
00037   int getSoTimeout();
00038 
00039 /*  
00040   JString toString();
00041   void close();
00042 */
00043  protected:
00044   int localPort;
00045   
00046 };
00047 
00048 #endif //__J2K__NET__TCPSERVERSOCKET_HPP__

Generated on Sun Oct 14 18:46:33 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001