34 lines
665 B
C++
34 lines
665 B
C++
#ifndef _FTP_FTPDATA_HPP_
|
|
#define _FTP_FTPDATA_HPP_
|
|
#ifndef _SOCKET_SOCKET_HPP_
|
|
#include <socket/socket.hpp>
|
|
#endif
|
|
#ifndef _SOCKET_SERVENT_HPP_
|
|
#include <socket/servent.hpp>
|
|
#endif
|
|
#ifndef _SOCKET_WSADATA_HPP_
|
|
#include <socket/wsadata.hpp>
|
|
#endif
|
|
|
|
class FTPData : public Socket, public INETSocketAddress
|
|
{
|
|
public:
|
|
enum {Listen};
|
|
FTPData(void);
|
|
virtual ~FTPData();
|
|
WORD accept(void);
|
|
WORD isOkay(void)const;
|
|
private:
|
|
void create(void);
|
|
|
|
Socket mFTPDataSocket;
|
|
WSASystem mWSASystem;
|
|
};
|
|
|
|
inline
|
|
WORD FTPData::isOkay(void)const
|
|
{
|
|
return (mWSASystem.isInitialized()&&mFTPDataSocket.isOkay()&&mFTPDataSocket.isBound()&&mFTPDataSocket.isListening());
|
|
}
|
|
#endif
|