<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="udpsend" module="max" category="Devices">
	<digest>
		Send messages over a network
	</digest>
	<description>
		Transmits messages over a network using the User Datagram Protocol (UDP).
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Devices
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<!--OUTLETS-->
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="host" optional="0" type="symbol">
			<digest>
				Destination host ID
			</digest>
			<description>
				Specifies the host destination to which messages will be sent over a network. Host destinations can be specified either by name (e.g., localhost) or by IP address (e.g., 127.0.0.1).
			</description>
		</objarg>
		<objarg name="port" optional="0" type="int">
			<digest>
				Destination network port
			</digest>
			<description>
				Specifies the remote port that the <o>udpsend</o> object will use when sending messages.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Send the message via UDP
			</digest>
			<description>
				Sends the <m>bang</m> message over the network using UDP.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="message" optional="0" type="int" />
			</arglist>
			<digest>
				Send the message via UDP
			</digest>
			<description>
				Sends an <m>int</m> message over the network using UDP.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="message" optional="0" type="float" />
			</arglist>
			<digest>
				Send the message via UDP
			</digest>
			<description>
				Sends a <m>float</m> message over the network using UDP.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="message" optional="0" type="list" />
			</arglist>
			<digest>
				Send the message via UDP
			</digest>
			<description>
				Sends a <m>list</m> message over the network using UDP.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="message" optional="0" type="list" />
			</arglist>
			<digest>
				Send the message via UDP
			</digest>
			<description>
				Sends the given message over the network using UDP.
			</description>
		</method>
		<method name="FullPacket">
			<arglist>
				<arg name="behavior" optional="0" type="int" />
				<arg name="number" optional="0" type="int" />
			</arglist>
			<digest>
				Set full packet mode
			</digest>
			<description>
				The <o>udpsend</o> object and its counterpart the <o>udpreceive</o> object provide support for third-party Max objects that work with the Open Sound Control (OSC) protocol developed by the Center for New Music and Audio Technologies (CNMAT) at the University of California, Berkeley. The <m>FullPacket</m> message toggles support for the 'FullPacket' message used by the CNMAT Open Sound Control externals or the Max <o>udpreceive</o> object--when set, the <o>udpsend</o> object will send UDP buffers in the form of OSC 'FullPacket' messages.
			</description>
		</method>
		<method name="host">
			<arglist>
				<arg name="host" optional="0" type="symbol" />
			</arglist>
			<digest>
				Set the destination host
			</digest>
			<description>
				The word <m>host</m>, followed by a symbol, specifies the host destination to which messages will be sent. Host destinations can be specified either by name (e.g., localhost) or by IP address (e.g., 127.0.0.1).
			</description>
		</method>
		<method name="maxqueuesize">
			<arglist>
				<arg name="maximum" optional="0" type="int" />
			</arglist>
			<digest>
				Set maximum message queue size
			</digest>
			<description>
				The word <m>maxqueuesize</m>, followed by an integer, sets the maximum number of incoming messages that can be in the queue at any given time (default=512). The work queue will grow as needed until this maximum limit is reached. In high-traffic or high-speed situations, you may need to increase the maximum queue size to avoid dropped messages.
			</description>
		</method>
		<method name="maxpacketsize">
			<arglist>
				<arg name="maximum" optional="0" type="int" />
			</arglist>
			<digest>
				Set maximum packet size
			</digest>
			<description>
				The word <m>maxpacketsize</m>, followed by an integer, sets the size, in bytes, of the largest UDP packet that you can send (default=5096). Since this value is related to the largest Max message you can possibly send, you may need to increase this value if you are sending very long Max messages.
			</description>
		</method>
		<method name="port">
			<arglist>
				<arg name="port" optional="0" type="int" />
			</arglist>
			<digest>
				Set the destination port
			</digest>
			<description>
				The word <m>port</m>, followed by a number, specifies the remote port that the <o>udpsend</o> object will use to send outgoing messages.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="udpsend.png" caption="Look Ma! No Hands!!!" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="udpreceive" />
		<seealso name="communicationschapter03" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="(UDP)">
			<description>
				There are no outlets. Max messages received by the <o>udpsend</o> object are serialized and sent over the network as OSC-compatible UDP packets.
			</description>
		</entry>
	</misc>
</c74object>
