MAKETCP/de

From MCS Wiki AVR
< MAKETCP
Revision as of 22:37, 11 February 2013 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

= (**COPIED FROM ENGLISH PAGE**) === Action

Creates a TCP/IP formatted long variable.

 

 

Syntax

var = MAKETCP(b1,b2,b3,b4 [opt])

var = MAKETCP(num)

 

 

Remarks

var

The target variable of the type LONG that is assigned with the IP number

b1-b4

Four variables of numeric constants that form the IP number.

b1 is the MSB of the IP/long

b4 is the LSB of the IP/long

example var = MakeTCP(192,168,0, varx).

 

We can also use reverse order with the optional parameter :

example var = MakeTCP(var3,0,168, 192, 1 ).

A value of 1 will use reverse order while a value of 0 will result in normal order.

 

When you use a constant, provide only one parameter :

example var = MakeTCP(192.168.0.2). Notice the dots !

 

MakeTCP is a helper routine for the TCP/IP library.

 

See also

CONFIG TCPIP , IP2STR

 

 

Example

NONE


Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language