import whatap.net as net
import whatap.net.sender as sender

def SendSecure(p):
	sender.Send(net.NET_SECURE_CYPHER, p)

def SendHide(p ):
	sender.Send(net.NET_SECURE_HIDE, p)

def SendNorm(p ) :
	sender.Send(0, p)

def SendOneway(pcode, licenseHash, p):
	"""Send a pack to the project identified by pcode/licenseHash.

	SERVER-1943, mirrors go-apm data.SendOneway. Used to deliver data to a
	project other than the one this agent's session authenticated against
	(currently: cronjob results from inspection jobs). Both identifiers must be
	UNSIGNED - see whatap.net.tcpsession.TcpSession.SendOneway.
	"""
	sender.SendEx(pcode, licenseHash, 0, p)

