Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

oscl_socket_listen.h

Go to the documentation of this file.
00001 
00002 #ifndef OSCL_SOCKET_LISTEN_H_INCLUDED
00003 #define OSCL_SOCKET_LISTEN_H_INCLUDEDd
00004 
00005 #include "oscl_socket_types.h"
00006 #include "oscl_socket_serv_imp.h"
00007 #include "oscl_socket_imp.h"
00008 #include "oscl_socket_method.h"
00009 
00013 class OsclListenRequest;
00014 
00015 class OsclListenMethod : public OsclSocketMethod
00016 {
00017     public:
00018         static OsclListenMethod *NewL(OsclIPSocketI& c);
00019 
00020         ~OsclListenMethod();
00021 
00022         TPVSocketEvent Listen(uint32 qsize,
00023                               int32 aTimeout);
00024 
00025     private:
00026         OsclListenMethod(OsclIPSocketI& c)
00027                 : OsclSocketMethod(c, "oscllistenmethod", EPVSocketListen)
00028         {}
00029 
00030         void ConstructL();
00031 
00032     public:
00033         OsclListenRequest *ListenRequest()
00034         {
00035             return (OsclListenRequest*)iSocketRequestAO;
00036         }
00037 };
00038 
00042 class OsclListenRequest : public OsclSocketRequestAO
00043 {
00044     public:
00045         OsclListenRequest(OsclSocketMethod& c)
00046                 : OsclSocketRequestAO(c, "osclListenRequest")
00047         {}
00048 
00049         void Listen(uint32 qsize);
00050 
00051     private:
00052 
00053         ListenParam*Param()
00054         {
00055             return(ListenParam*)iParam;
00056         }
00057 
00058 };
00059 
00060 
00061 #endif
00062 
00063 
00064 

OSCL API
Posting Version: OPENCORE_20090310