TCP_IP Component

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
bogha
Posts: 2
Joined: Mon Feb 06, 2012 2:34 pm
Contact:

TCP_IP Component

Post by bogha »

sorry to post again but i couldn't rely to my last topic for reason i dont know.

my question is normal.

i can't transmit bytes to a server, i think maybe i miss configured the ports.

how can i transmit a byte to a server listening to port 23456 for example

i didnt understand the meaning of dst_port_hi and dst_port_lo

any help please

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: TCP_IP Component

Post by kersing »

bogha wrote: how can i transmit a byte to a server listening to port 23456 for example
i didnt understand the meaning of dst_port_hi and dst_port_lo
any help please
dst_port_hi = port / 256
dst_port_lo = port - ( dst_port_hi * 256 ) (equals dst_port_lo = port % 256)

So for your example port of 23456 the values would be:
dst_port_hi = 23456 / 256 = 91
dst_port_lo = 23456 - ( 91 * 256 ) = 160

Hope this helps.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: TCP_IP Component

Post by kersing »

bogha wrote:sorry to post again but i couldn't rely to my last topic for reason i dont know.
Your last message has been moved to the Flowcode 4 forum (it is here) which requires you to register for that forum before you are allowed to post in it.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: TCP_IP Component

Post by Steve »

Support for Flowcode V4 customers is done via the Flowcode V4 forum. Please see the following link for more information:
http://www.matrixmultimedia.com/mmforum ... =29&t=8762

Post Reply