Platforms to show: All Mac Windows Linux Cross-Platform

OptionTTLMBS(extends s as SocketCore) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Network MBS Network Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the time to live value.

Works only on BSD Sockets and if the socket handle value is valid.
Raises UnsupportedOperationException in case of failure.

See also:

Some examples using this global method:

OptionTTLMBS(extends s as SocketCore, assigns value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Network MBS Network Plugin 8.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the time to live value.
Example
dim t as new TCPSocket

// create a socket
t.Port=80
t.Address="www.apple.com"
t.Connect

// wait a second to connect
app.DoEvents 1000

// shows handle
MsgBox str(t.Handle)

// shows current value
MsgBox str(t.OptionTTLMBS)
t.OptionTTLMBS=10

// shows new value
MsgBox str(t.OptionTTLMBS)

Works only on BSD Sockets and if the socket handle value is valid.
Raises UnsupportedOperationException in case of failure.

See also:

Some examples using this global method:

The items on this page are in the following plugins: MBS Network Plugin.


The biggest plugin in space...