Datasnap.Win.MidasCon.TMidasConnection.ServerPort

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ServerPort: Integer read FServerPort write FServerPort default 211;

C++

__property int ServerPort = {read=FServerPort, write=FServerPort, default=211};

Properties

Type Visibility Source Unit Parent
property published
Datasnap.Win.MidasCon.pas
Datasnap.Win.MidasCon.hpp
Datasnap.Win.MidasCon TMidasConnection

Description

Specifies the port used by the listening socket on the server machine.

When establishing connections to the application server using TCP/IP sockets, the application server must have a socket dispatcher listening on a predefined port for requests from client applications. If the value of ConnectType is ctSockets, set ServerPort to the port number used by Scktsrvr.exe or ScktSrvc.exe on the server system. TMidasConnection attempts to connect to the application server by sending a message to the system specified by the ComputerName property at the port specified by ServerPort.

Note: ServerPort has no effect if ConnectType is not ctSockets.

See Also