Receive TCP Commands

87 views
Skip to first unread message

Trikom

unread,
Aug 23, 2011, 1:52:58 PM8/23/11
to CommandFusion
I am using "CF.send" to send tcp / ip commands. But, what is the
command to receive tcp / ip messages?

Fiasco

unread,
Aug 23, 2011, 2:23:36 PM8/23/11
to CommandFusion

Create s system that accepts incoming connections.

Florent Pillet

unread,
Aug 23, 2011, 6:08:10 PM8/23/11
to comman...@googlegroups.com
As Fiasco said, create a system accepting incoming connections on the desired port.

In addition, you'll want to set at least one feedback item, a catch-all item that
catches everything received on the chosen port. Then in your JS setup, watch
the CF.FeedbackMatchEvent for this system and process your data in Javascript.

There are examples for this in the documentation.

Florent

On 23 août 2011, at 19:52, Trikom wrote:

> I am using "CF.send" to send tcp / ip commands. But, what is the
> command to receive tcp / ip messages?
>

> --
> You received this message because you are subscribed to the Google Groups "CommandFusion" group.
> To post to this group, send email to comman...@googlegroups.com.
> To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.
>

--
Florent Pillet - Software Engineering Lead
www.commandfusion.com

Jarrod Bell

unread,
Aug 23, 2011, 8:31:35 PM8/23/11
to comman...@googlegroups.com
One thing to note "Accept incoming connections" option in system
properties is only for creating a TCP Server on the iPad or listening
for UDP incoming data.
Do not tick this option if you want iViewer to be a TCP Client,
connecting to a TCP Server.

Jarrod

On 24/08/11 8:08 AM, Florent Pillet wrote:
> As Fiasco said, create a system accepting incoming connections on the desired port.
>
> In addition, you'll want to set at least one feedback item, a catch-all item that
> catches everything received on the chosen port. Then in your JS setup, watch
> the CF.FeedbackMatchEvent for this system and process your data in Javascript.
>
> There are examples for this in the documentation.
>
> Florent
>

Fiasco

unread,
Aug 23, 2011, 11:54:58 PM8/23/11
to CommandFusion
You don't need to have accept incoming connections checked for udp

On Aug 23, 7:31 pm, Jarrod Bell <jar...@guilink.com> wrote:
> One thing to note "Accept incoming connections" option in system
> properties is only for creating a TCP Server on the iPad or listening
> for UDP incoming data.
> Do not tick this option if you want iViewer to be a TCP Client,
> connecting to a TCP Server.
>
> Jarrod
>
> On24/08/11 8:08 AM, Florent Pillet wrote:
>
>
>
> > As Fiasco said, create a system accepting incoming connections on the desired port.
>
> > In addition, you'll want to set at least one feedback item, a catch-all item that
> > catches everything received on the chosen port. Then in your JS setup, watch
> > the CF.FeedbackMatchEvent for this system and process your data in Javascript.
>
> > There are examples for this in the documentation.
>
> > Florent
>
> > On 23 ao t 2011, at 19:52, Trikom wrote:
>
> >> I am using "CF.send" to send tcp / ip commands. But, what is the
> >> command to receive  tcp / ip  messages?
>
> >> --
> >> You received this message because you are subscribed to the Google Groups "CommandFusion" group.
> >> To post to this group, send email to comman...@googlegroups.com.
> >> To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
> >> For more options, visit this group athttp://groups.google.com/group/commandfusion?hl=en.

Florent Pillet

unread,
Aug 24, 2011, 5:19:23 AM8/24/11
to comman...@googlegroups.com
Not so sure. If you don't tick the "Accept Incoming Connection" box, we don't initiate data reads on the UDP socket, so you may not receive any message at all (although I've not tried sending datagrams to a non-accepting UDP socket in iViewer, I'll give it a go -- but since we don't attempt reading in this case, messages may be lost).

Florent

On 24 août 2011, at 05:54, Fiasco wrote:

> You don't need to have accept incoming connections checked for udp
>
> On Aug 23, 7:31 pm, Jarrod Bell <jar...@guilink.com> wrote:
>> One thing to note "Accept incoming connections" option in system
>> properties is only for creating a TCP Server on the iPad or listening
>> for UDP incoming data.
>> Do not tick this option if you want iViewer to be a TCP Client,
>> connecting to a TCP Server.
>>
>> Jarrod

--

Reply all
Reply to author
Forward
0 new messages