/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "Licence").
 * You may not use this file except in compliance with the Licence.
 *
 * You can obtain a copy of the licence at RISC OS path @.^.LICENCE
 * or  http://www.riscosdev.com/lanman98/LICENCE.CDDL
 * See the Licence for the specific language governing permissions
 * and limitations under the Licence.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the Licence file. If applicable, add the
 * following below this CDDL HEADER, with the fields enclosed by
 * brackets "[]" replaced with your own identifying information:
 * Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
 
/*
 *   Copyright 1996 Warm Silence Software Ltd.  All rights reserved.
 *   Use is subject to license terms.
 */

/*   PHBG 27/11/96: Initial version
 */

#ifndef _VC_
#define _VC_

#include "data.h"
#include "tcp.h"


typedef struct vc_s *vc_t;


vc_t VC(char *domain, tcp_port_t port, char *netbios_name);

void VCDestruct(vc_t);

data_t VCBuffer(vc_t);

void VCResizeBuffer(vc_t, int);

void VCSend(vc_t, int);

void VCReceive(vc_t);

int VCReceiveRaw(char *, int, vc_t);

void VCCommunicate(vc_t, int);

void VCFlush(vc_t);

#endif

