X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fhumperdink%2Fremote.c;fp=src%2Fhumperdink%2Fremote.c;h=0000000000000000000000000000000000000000;hb=27f0329aa8f434794f1f18e018fc3221e58b77a4;hp=8171179a0a69db96d20f8010bdde3dad9e118a4d;hpb=f5a43889f0ea29962f2d32b5dab0fcd25bebb945;p=melted diff --git a/src/humperdink/remote.c b/src/humperdink/remote.c deleted file mode 100644 index 8171179..0000000 --- a/src/humperdink/remote.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * remote.c -- Remote Valerie client demo - * Copyright (C) 2002-2003 Ushodaya Enterprises Limited - * Author: Charles Yates - * - * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -/* System header files */ -#include -#include - -#include - -/* Application header files */ -#include "client.h" -#include "io.h" - -/** Connect to a remote server. -*/ - -static valerie_parser create_parser( ) -{ - char server[ 132 ]; - int port; - valerie_parser parser = NULL; - - printf( "Connecting to a Server\n\n" ); - - printf( "Server [localhost]: " ); - - if ( io_get_string( server, sizeof( server ), "localhost" ) != NULL ) - { - printf( "Port [5250]: " ); - - if ( get_int( &port, 5250 ) != NULL ) - parser = valerie_parser_init_remote( server, port ); - } - - printf( "\n" ); - - return parser; -} - -/** Main function. -*/ - -int main( int argc, char **argv ) -{ - valerie_parser parser = create_parser( ); - - if ( parser != NULL ) - { - dv_demo demo = dv_demo_init( parser ); - dv_demo_run( demo ); - dv_demo_close( demo ); - valerie_parser_close( parser ); - } - - return 0; -}