<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p>I am currently trying to port a number of my jMax externals to pd. I'm
having a problem when setting up some of my network objects which take
as object arguments the host name followed by the port number. For example
[socksenddgs localhost 6537].
<br>I need to assign this argument to a const char, however it will not
allow me to initialise the variable.
<br>In jMax it works in the following way;
<p>const char *host;
<br>int port;
<br>socksenddgs_t *this = (socksenddgs_t *)o;
<br>this->sockfd = -1;
<br>host = fts_symbol_name(fts_get_symbol_arg( ac, at, 1,0));
<br>port = fts_get_int_arg( ac, at, 2, 0);
<p>Any ideas or examples of converting string type arguments from the object
would be much appreciated
<p>Matt
<pre>--&nbsp;

Matthew Paradis
University of York
Music Department&nbsp;
Heslington,&nbsp;
York,&nbsp;
YO10 5DD,&nbsp;
UK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Tel: 0044-1904-43-2435&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
mdjp100@york.ac.uk</pre>
&nbsp;</html>