Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Трехуровневое приложение. Очень простое


PKT ©   (2002-11-11 10:36:00) 

Пытался состряпать простейшее трехуровневое приложение по рекомендациям
статьи "MIDAS - multi-tired distributed application service suite"
( http://delphi.mastak.com/articles/midas2/index.html).
Сервер на основе RemoteDataModule изготовился и зарегистрировался.

При попытке изготовления клиента при задании свойства
SocketConnection1.ServerName (Host или Address уже
заданы) вываливается ошибка:

Windows socket error: Подключение не установлено, т.к. конечный
компьютер отверг запрос на подключение (10061), on API "connect"


Sctsrvr запущена.

Может быть кто сталкивался ? Это система (Windows 2000) глючит или
у меня где-то руки кривые ?


Vagrant   (2002-11-12 02:09:00) [1]

Запусти SocketServer на компутере где зарегистрирован написанный тобой сервер.


Digitman   (2002-11-11 11:17:00) [2]

Тогда остается один вариант : клиент осуществляет попытку коннекта по ошибочному IP-адресу (адресу, по которому BSS отсутствует)

Только эти две причины (не считая conditional acceptance) могут вызвать ErrorCode = 10061


PKT   (2002-11-11 11:12:00) [3]

SocketConnection.Port = 211
В общем как по умолчанию, ничего не менял.


Digitman   (2002-11-11 11:06:00) [4]

Где ты там чего написал ?? Ни-че-го ты там не написал ! Сиди вот тут и гадай за тебя :

- какие порты использует Borland Socket Server в момент активности;
- каково знач-е св-ва SocketConnection.Port на кл.стороне в момент попытки коннекта


PKT   (2002-11-11 11:00:00) [5]

Запущена,
я ж это еще в (11.11.02 10:36)
написал.


Digitman   (2002-11-11 10:59:00) [6]

Я для Пушкина что ли фрагмент хэлпа привел ?
Ты соблюдаешь это условие ?


> For Socket connections, ScktSrvr.exe must be running on
> the server machine.


PKT   (2002-11-11 10:53:00) [7]

to: Digitman © (11.11.02 10:39)

Задал ServerGUID. Появилось корректное ServerName.
При SocketConnection1.Connected := True опять вываливается
точно такая-же ошибка.


Digitman   (2002-11-11 10:39:00) [8]

Specifies the name of the application server with which to connect.

property ServerName: string;

Description

Use ServerName to specify the name of the application server to which the client application should connect. At design time, the Object Inspector provides a drop-down list of all available servers if one of the following conditions is met.

For DCOM and OLEnterprise connections, the servers must be registered in the system Registry.
For Socket connections, ScktSrvr.exe must be running on the server machine.
For Web connections, the connection component must have an URL for locating httpsrvr.dll.

If ServerName specifies a valid name for a registered application server, setting ServerName sets the ServerGUID property to the GUID that corresponds to the named application server.

Note: Either ServerName or ServerGUID must be provided so that the dispatch connection can create and communicate with the appropriate server COM object. This is true even for connections that are not formed using DCOM, because the remote data module on the application server is always implemented as a COM object. Using ServerGUID rather than ServerName to identify the application server is more robust because it does not require the application server to be registered on the client system when using a COM-based connection.


Наверх

Титульная страница Поиск, карта сайта Написать письмо