Initial
This commit is contained in:
33
ftp/FTPDATA.HPP
Normal file
33
ftp/FTPDATA.HPP
Normal file
@@ -0,0 +1,33 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user