import aaz.libhpsocket.properties.server;

var _dll = aaz.libhpsocket._dll;

namespace aaz.libhpsocket.properties.udpServer{
	..table.assign(self, ..aaz.libhpsocket.properties.server);

	maxDatagramSize = {
    	_get = function(){
    		return _dll.HP_UdpServer_GetMaxDatagramSize(owner.pSocket);
    	}
    	
    	_set = function(v){
    		_dll.HP_UdpServer_SetMaxDatagramSize(owner.pSocket, v);
    	} 
	}

	postReceiveCount = {
    	_get = function(){
    		return _dll.HP_UdpServer_GetPostReceiveCount(owner.pSocket);
    	}
    	
    	_set = function(v){
    		_dll.HP_UdpServer_SetPostReceiveCount(owner.pSocket, v);
    	} 
	}

	detectAttempts = {
    	_get = function(){
    		return _dll.HP_UdpServer_GetDetectAttempts(owner.pSocket);
    	}
    	
    	_set = function(v){
    		_dll.HP_UdpServer_SetDetectAttempts(owner.pSocket, v);
    	} 
	}

	detectInterval = {
    	_get = function(){
    		return _dll.HP_UdpServer_GetDetectInterval(owner.pSocket);
    	}
    	
    	_set = function(v){
    		_dll.HP_UdpServer_SetDetectInterval(owner.pSocket, v);
    	} 
	}
}
