pure-data/src/u_pdreceive.c

/* Copyright (c) 2000 Miller Puckette.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in the Pd distribution.  */

/* the "pdreceive" command. This is a standalone program that receives messages
from Pd via the netsend/netreceive ("FUDI") protocol, and copies them to
standard output. */

/* May 2008 : fixed a buffer overflow problem; pdreceive sometimes
    repeated infinitely its buffer during high speed transfer.
    Moonix::Antoine Rousseau
*/

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#endif

#include "s_net.h"

t_fdpoll;

static int nfdpoll;
static t_fdpoll *fdpoll;
static int maxfd;
static int sockfd;
static int protocol;
char recvbuf[NET_MAXPACKETSIZE];

static void sockerror(char *s);
static void dopoll(void);
static void sockerror(char *s);

/* print addrinfo lists for debugging */
/* #define PRINT_ADDRINFO */

int main(int argc, char **argv)
{}

static void addport(int fd)
{}

static void rmport(t_fdpoll *x)
{}

static void doconnect(void)
{}

static void makeoutput(char *buf, int len)
{}

static void udpread(void)
{}

static int tcpmakeoutput(t_fdpoll *x, char *inbuf, int len)
{}

static void tcpread(t_fdpoll *x)
{}

static void dopoll(void)
{}


void sockerror(char *s)
{}