Files
veejay/veejay-current/libvjnet/vj-client.h
Niels Elburg 18dc6041cf Fixed tickets #23, #24, #25.
Multicast frame sender and multicast command receiver optional beside standard tcp ports.
Removed multicast support from gveejay (obsolete), Added VIMS 023/022 and /out/mcaststart ,
/out/mcaststop to start/stop multicast frame sender. Change --port to --portoffset, Added -O5 for
silent output (no visual), Updated MAN page, minor documentation updates in doc/



git-svn-id: svn://code.dyne.org/veejay/trunk@308 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
2005-05-10 10:29:13 +00:00

73 lines
1.8 KiB
C

/* veejay - Linux VeeJay
* (C) 2002-2004 Niels Elburg <nelburg@looze.net>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <config.h>
#ifndef VJ_CLIENT_H
#define VJ_CLIENT_H
#include <libvjnet/mcastreceiver.h>
#include <libvjnet/mcastsender.h>
#include <libvjnet/cmd.h>
#include <libvjnet/common.h>
typedef struct
{
mcast_receiver *r;
mcast_sender *s;
vj_sock_t *fd;
int type;
} conn_type_t;
typedef struct
{
int planes[3];
int cur_width;
int cur_height;
int cur_fmt;
conn_type_t **c;
int ports[3];
int mcast;
unsigned char *blob;
} vj_client;
int vj_client_connect( vj_client *v, char *host, char *group_name, int port_id );
int vj_client_get_status_fd(vj_client *v, int sock_type );
void vj_client_flush( vj_client *v, int delay );
int vj_client_poll( vj_client *v, int sock_type );
int vj_client_read_i(vj_client *v, uint8_t *dst );
int vj_client_read( vj_client *v, int sock_type, uint8_t *dst, int bytes );
int vj_client_close( vj_client *v );
int vj_client_send( vj_client *v, int sock_type, char *buf);
vj_client *vj_client_alloc(int w , int h, int f);
void vj_client_free(vj_client *v);
int vj_client_test(char *addr, int port );
#endif