MirSocket.h
资源名称:盛大传奇外挂原代码.rar [点击查看]
上传用户:marco7834
上传日期:2010-02-24
资源大小:82k
文件大小:1k
源码类别:
游戏引擎
开发平台:
Visual C++
- // MirSocket.h: interface for the CMirSocket class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MIRSOCKET_H__4D0584A6_2541_4CD2_AADB_A6BBC39D6032__INCLUDED_)
- #define AFX_MIRSOCKET_H__4D0584A6_2541_4CD2_AADB_A6BBC39D6032__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include <winsock2.h>
- class CMirSocket
- {
- public:
- CMirSocket();
- virtual ~CMirSocket();
- int SetNoBlock( SOCKET s );
- void CloseConnection( SOCKET s );
- SOCKET OpenConnection( char * ip, unsigned short port );
- BOOL NetCleanup();
- BOOL NetStartup();
- };
- #endif // !defined(AFX_MIRSOCKET_H__4D0584A6_2541_4CD2_AADB_A6BBC39D6032__INCLUDED_)