/****************************************************************************
				Send data to GMS using tcp connection.
				-----------------------------------------

	begin      : 2015/07/27
	copyright  : (C) 2005 Solbox Inc.
	author     : Dev Storage Team
	email      : huibong@solbox.com
	version    : 3.5

	CopyRight(C) 2005 Solbox Inc. All Rights reserved.
	Redistribution and use in source and binary forms, with or with out
	modification, are not permitted in outside of Solbox Inc.
*****************************************************************************/

#ifndef __SOCKET_GMS_H__
#define __SOCKET_GMS_H__

#include <unistd.h>
#include <stdint.h>

#include "BaseSocket.h"
#include "ProtocolGms.h"


/// @brief CSocketGms
/// 본 클래스는 GMS 와 TCP 연결을 수행한 후...
/// 전달받은 정보를 GMS 로 통신 Protocol 에 맞도록 전송 처리하는 역활을 수행한다.
class CSocketGms : public CBaseSocket
{
	public:
		
		CSocketGms();
		
		~CSocketGms();


		bool SendData( unsigned int nCount, char * szBuffer, unsigned int nBufferSize );
		
	private:

		

	private:

		// GMS Server 정보.
		std::string m_strGmsServer;
		int         m_nGmsPort;
		
		// GMS 로 Data 전송시 사용할 Message Header 관련 멤버변수.
		struct PacketHeaderGms m_stHeader;
};



#endif /* __SOCKET_GMS_H__ */
