Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Socket.LocalPort
Queries local port number.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Socket | 8.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| SocketID | The socket ID received by Socket.Connect function. | $sock |
Result
Returns OK or error.
Description
Queries local port number.This is usually 0 for a brand new socket.
Does not work on Windows 7 or older (requires Vista on Windows).
Examples
Get local port and IP:
Set Variable [ $sock ; Value: MBS("Socket.Connect"; "monkeybreadsoftware.de"; 80) ]
Set Variable [ $$LocalPort ; Value: MBS( "Socket.LocalPort"; $sock ) ]
Set Variable [ $$LocalIP ; Value: MBS( "Socket.LocalIP"; $sock ) ]
Set Variable [ $r ; Value: MBS("Socket.Close"; $sock) ]
See also
Blog Entries
Release notes
- Version 8.0
- Added Socket.LocalPort and Socket.LocalIP functions.
Created 28th December 2017, last changed 28th December 2017
Socket.LocalIP - Socket.NewTCPSocket
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins