Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pdsend(1) [debian man page]

pdsend(1)						      General Commands Manual							 pdsend(1)

NAME
pdsend - send messages to pd on this or a remote machine SYNOPSIS
pdsend port-number [hostname] [udp|tcp] DESCRIPTION
Pdsend sends messages to pd(1), via a socket conection, from pdsend's standard input. This input can be any stream of Pd messages sepa- rated by semicolons. This is probably the easiest way to control pd from another application. The protocol used is easy to implement and is called FUDI. The port number should agree with the port number of a "netreceive" object within pd. The hostname is "localhost" by default and can be a domain name or an IP address. The protocol is "tcp" by default; this does a handshake to guarantee that all messages arrive complete and in their correct order; if you are sending messages locally or point-to-point you can often get away with the faster udp protocol instead. You can also use this to talk to a Max "pdnetreceive" object or even just a "pdreceive" in another shell. If you're writing another pro- gram you're welcome to just grab the sources for pdsend/pdreceive and adapt them to your own ends; they're part of the Pd distribution. SEE ALSO
pd(1), pdreceive(1) GNU
1996 Mar 20 pdsend(1)

Check Out this Related Man Page

udp(n)								 Tnm Tcl Extension							    udp(n)

__________________________________________________________________________________________________________________________________________________

NAME
udp - Send and receive UDP datagrams. _________________________________________________________________ DESCRIPTION
The udp command allows to send and receive datagrams using the User Datagram Protocol (UDP) (RFC 768). UDP COMMAND
udp open [port] The udp open command opens a UDP datagram socket and returns an udp handle. The socket is bound to given port number or name. An unused port number is used if the port argument is missing. udp connect host port The udp connect command opens a UDP datagram socket and connects it to a port on a remote host. A connected UDP socket only allows to send messages to a single destination. This usually allows to shorten the code since there is no need to specify the destination address for each udp send command on a connected UDP socket. The command returns a udp handle. udp send handle [host port] message The udp send command sends a datagram containing message to the destination specified by host and port. The host and port arguments may not be used if the UDP handle is already connected to a transport endpoint. If the UDP handle is not connected, you must use these optional arguments to specify the destination of the datagram. udp receive handle The udp receive command receives a datagram from the UDP socket associated with handle. This command blocks until a datagram is ready to be received. In most cases, it might be a good idea to check for pending datagrams using the udp bind command. udp close handle The udp close command closes the UDP socket associated with handle. udp bind handle readable [script] udp bind handle writable [script] The udp bind command allows to bind scripts to a UDP handle. A script is evaluated once the UDP handle becomes either readable or writable, depending on the third argument of the udp bind command. The script currently bound to a UDP handle can be retrieved by calling the udp bind command without a script argument. Bindings are removed by binding an empty string. udp info [handle] The udp info command without the handle argument returns a list of all existing UDP handles. Information about the state of a UDP handle can be obtained by supplying a valid UDP handle. The result is a list containing the source IP address, the source port, the destination IP address and the destination port. SEE ALSO
scotty(1), Tnm(n), Tcl(n) AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl> Tnm udp(n)
Man Page