import aaz.libhpsocket.properties.tcpAgent;

var _dll = aaz.libhpsocket._dll;

namespace aaz.libhpsocket.properties.tcpPackAgent{
    ..table.assign(self, ..aaz.libhpsocket.properties.tcpAgent);
    
    maxPackSize = {
    	_get = function(){ 
    		return _dll.HP_TcpPackAgent_GetMaxPackSize(owner.pSocket);
    	}
    	
    	_set = function( v ){
    		_dll.HP_TcpPackAgent_SetMaxPackSize(owner.pSocket, v);
    	} 	
    }

    packHeaderFlag = {
    	_get = function(){ 
    		return 0xFFFF & _dll.HP_TcpPackAgent_GetPackHeaderFlag(owner.pSocket);
    	}
    	
    	_set = function( v ){
    		_dll.HP_TcpPackAgent_SetPackHeaderFlag(owner.pSocket, v);
    	} 	
    }	
}
