Forums > Javascript

Trying to create a tcp sender

April 22, 2008 | 6:11 pm

Hi, I’m trying to create a TCP Sender in javascript to use in Max. I know there’s the built-in mxj net.tcp.send, but I’m not sure if that automatically closes the connection after the message is sent. I wanted a little more control over it, so I decided to just try writing it. However, when I go to import what I need to use the TcpClient class, it says that "import is a reserved identifier". Does this mean that I can’t import anything, or am I just going about it the wrong way?

Thanks.


April 23, 2008 | 8:57 pm

Quote: magicplayr2000@gmail.com wrote on Tue, 22 April 2008 20:11
—————————————————-
> Hi, I’m trying to create a TCP Sender in javascript to use in Max. I know there’s the built-in mxj net.tcp.send, but I’m not sure if that automatically closes the connection after the message is sent. I wanted a little more control over it, so I decided to just try writing it. However, when I go to import what I need to use the TcpClient class, it says that "import is a reserved identifier". Does this mean that I can’t import anything, or am I just going about it the wrong way?
>
> Thanks.
—————————————————-

Are you sure you’re talking about Javascript, not Java?

Mattijs


Viewing 2 posts - 1 through 2 (of 2 total)