urbiConnect

PURPOSE ^

Opens a connection to the URBI server and returns the ID of the connection

SYNOPSIS ^

function con = urbiConnect(name, port)

DESCRIPTION ^

Opens a connection to the URBI server and returns the ID of the connection
 e.g. con = urbiConnect('101.1.1.1', 54000);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function con = urbiConnect(name, port)
0002 %Opens a connection to the URBI server and returns the ID of the connection
0003 % e.g. con = urbiConnect('101.1.1.1', 54000);
0004 
0005 if (nargin <1)
0006     error('urbiConnect(name, port)\n name : IP or name of the urbi server\n port : port of the urbi server (def : 54000)',1);
0007 end
0008 
0009 if (nargin == 1)
0010     port= 54000;
0011 end
0012 
0013 con = pnet('tcpconnect', name, port);
0014 
0015 if ( con > -1) 
0016     urbiClearConnection(con); 
0017 else
0018     error('Connection failed on port %d' , port);
0019 end

Generated on Tue 20-Dec-2005 19:05:34 by m2html © 2003