summaryrefslogtreecommitdiffabout
path: root/Resolver.cpp
authorMichael Krelin <hacker@klever.net>2012-12-08 21:19:17 (UTC)
committer Michael Krelin <hacker@klever.net>2012-12-11 21:59:29 (UTC)
commit8808689fe340bec6e90ab13dd502292b0579cf1f (patch) (side-by-side diff)
tree45b7c863151341f687b74e40bffcbd7ab5468783 /Resolver.cpp
parent6e7e413ca364d79673e523c09767c18e7cff1bec (diff)
downloadpumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.zip
pumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.tar.gz
pumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.tar.bz2
initial osx portosx/0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'Resolver.cpp') (more/less context) (show whitespace changes)
-rw-r--r--Resolver.cpp71
1 files changed, 0 insertions, 71 deletions
diff --git a/Resolver.cpp b/Resolver.cpp
deleted file mode 100644
index 0ec66d3..0000000
--- a/Resolver.cpp
+++ b/dev/null
@@ -1,71 +0,0 @@
-// Resolver.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "PumpKIN.h"
-#include "Resolver.h"
-#include "PumpKINDlg.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CResolver
-
-CResolver::CResolver()
-{
- ASSERT(NULL);
-}
-
-CResolver::~CResolver()
-{
-}
-
-
-BEGIN_MESSAGE_MAP(CResolver, CWnd)
- //{{AFX_MSG_MAP(CResolver)
- ON_WM_CREATE()
- ON_MESSAGE(WM_RESOLVED, OnResolved)
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CResolver message handlers
-
-CResolver::CResolver(CXferSocket *socket)
- : socket(socket)
-{
-}
-
-int CResolver::OnCreate(LPCREATESTRUCT lpCreateStruct)
-{
- if (CWnd::OnCreate(lpCreateStruct) == -1)
- return -1;
-
- ASSERT(socket);
-CString hostName = socket->m_HostName;
-int at = hostName.Find('@');
- if(at>=0)
- hostName=hostName.Mid(at+1);
- m_hAsync=WSAAsyncGetHostByName(m_hWnd,WM_RESOLVED,(LPCTSTR)hostName,(char*)socket->m_ResolveBuff,sizeof(socket->m_ResolveBuff));
- ASSERT(m_hAsync);
- return 0;
-}
-
-LRESULT CResolver::OnResolved(WPARAM wP,LPARAM lP)
-{
- if(WSAGETASYNCERROR(lP))
- socket->OnFailedToResolve();
- else
- socket->OnResolved();
- return 0;
-}
-
-BOOL CResolver::Resolve()
-{
- return Create(NULL,"PumpKIN-Resolver",WS_CHILD,CRect(0,0,0,0),socket->m_Daddy,0);
-}