Gets or sets local portnumber for TCP/IP connection. If SavoyGem is running as active entity, this property should be 0. Or connection will not be re-established until TCP/IP level time-out.
When SavoyGem is running as passive entity, MyPortNumber property indicates server port number for incoming client connection.
Since some port numbers are reserved by Windows OS, the number should be grater than 1024 in general. For example http server uses port number 80.
Syntax
|
long GetMyPortNumber()
void SetMyPortNumber(long)
|
Return Value
Example
|
.MyPortNumber = 0 ‘ Auto determine
|
|
m_ctrl.SetMyPortNumber(0); // Auto determine
|
Remarks
Persistent property.
See Also
|