GETDSTIP/de

From MCS Wiki AVR
< GETDSTIP
Revision as of 20:14, 15 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

Returns the IP address of the peer.

 

 

Syntax

Result = GETDSTIP( socket)

 

 

Remarks

Result

A LONG variable that will be assigned with the IP address of the peer or destination IP address.

Socket

The socket number (0-3)

 

When you are in server mode, it might be desirable to detect the IP address of the connecting client.

You can use this for logging, security, etc.

 

The IP number MSB, is stored in the LS byte of the variable.

 

 

See also

CONFIG TCPIP, GETSOCKET , SOCKETCONNECT, SOCKETSTAT , TCPWRITE, TCPWRITESTR, CLOSESOCKET , SOCKETLISTEN, GETDSTPORT

 

 

Partial Example


Dim L as Long
L = GetdstIP(i) ' store current IP number of socket i

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