diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/blockingudpsocket.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/blockingudpsocket.h')
| -rw-r--r-- | sp/src/public/blockingudpsocket.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/sp/src/public/blockingudpsocket.h b/sp/src/public/blockingudpsocket.h index 674d125e..2f605550 100644 --- a/sp/src/public/blockingudpsocket.h +++ b/sp/src/public/blockingudpsocket.h @@ -1,39 +1,39 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef BLOCKINGUDPSOCKET_H
-#define BLOCKINGUDPSOCKET_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "netadr.h"
-
-class CBlockingUDPSocket
-{
-public:
- explicit CBlockingUDPSocket();
- virtual ~CBlockingUDPSocket();
-
- bool WaitForMessage( float timeOutInSeconds );
- unsigned int ReceiveSocketMessage( struct sockaddr_in *packet_from, unsigned char *buf, size_t bufsize );
- bool SendSocketMessage( const struct sockaddr_in& rRecipient, const unsigned char *buf, size_t bufsize );
-
- bool IsValid() const { return m_Socket != 0; }
-
-protected:
- bool CreateSocket (void);
-
- class CImpl;
- CImpl *m_pImpl;
-
- netadr_t m_cserIP;
- unsigned int m_Socket;
-
-
-};
-
-#endif // BLOCKINGUDPSOCKET_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef BLOCKINGUDPSOCKET_H +#define BLOCKINGUDPSOCKET_H +#ifdef _WIN32 +#pragma once +#endif + +#include "netadr.h" + +class CBlockingUDPSocket +{ +public: + explicit CBlockingUDPSocket(); + virtual ~CBlockingUDPSocket(); + + bool WaitForMessage( float timeOutInSeconds ); + unsigned int ReceiveSocketMessage( struct sockaddr_in *packet_from, unsigned char *buf, size_t bufsize ); + bool SendSocketMessage( const struct sockaddr_in& rRecipient, const unsigned char *buf, size_t bufsize ); + + bool IsValid() const { return m_Socket != 0; } + +protected: + bool CreateSocket (void); + + class CImpl; + CImpl *m_pImpl; + + netadr_t m_cserIP; + unsigned int m_Socket; + + +}; + +#endif // BLOCKINGUDPSOCKET_H |