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

# oscl_socket_connect.h

Go to the documentation of this file.

    00001
    00002 #ifndef OSCL_SOCKET_CONNECT_H_INCLUDED
    00003 #define OSCL_SOCKET_CONNECT_H_INCLUDED
    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 OsclConnectRequest;
    00014
    00015 class OsclConnectMethod : public OsclSocketMethod
    00016 {
    00017     public:
    00018         static OsclConnectMethod *NewL(OsclIPSocketI& c);
    00019
    00020         ~OsclConnectMethod();
    00021
    00022         TPVSocketEvent Connect(OsclNetworkAddress& aAddress,
    00023                                int32 aTimeout);
    00024
    00025     private:
    00026         OsclConnectMethod(OsclIPSocketI& c)
    00027                 : OsclSocketMethod(c, "osclconnectmethod", EPVSocketConnect)
    00028         {}
    00029
    00030         void ConstructL();
    00031
    00032     public:
    00033         OsclConnectRequest *ConnectRequest()
    00034         {
    00035             return (OsclConnectRequest*)iSocketRequestAO;
    00036         }
    00037 };
    00038
    00042 class OsclConnectRequest : public OsclSocketRequestAO
    00043 {
    00044     public:
    00045         OsclConnectRequest(OsclSocketMethod& c)
    00046                 : OsclSocketRequestAO(c, "osclConnectRequest")
    00047         {}
    00048
    00049         void Connect(OsclNetworkAddress &aAddress);
    00050
    00051     private:
    00052
    00053         ConnectParam*Param()
    00054         {
    00055             return(ConnectParam*)iParam;
    00056         }
    00057
    00058 };
    00059
    00060
    00061 #endif
    00062
    00063
    00064