Le Mercredi 24 Septembre 2003 10:45, Steven Whitehouse a =E9crit :
> > I have a question about an error message : i have an object (server)
> > running on a VAX machine (written in ADA) that i try to connect by a
> > socket connection (a remote named object) from a LINUX box.
>
> Me neither :-)
Bad for me :-)
But thanks for the response !
> Did you set the connect data and/or the access data before calling connec=
t?
> Not that it should case a crash if it wasn't set, but I would expect the
> "object rejected connect" response if something didn't match there.
If you talk about the sockaddr_dn structure, i think it's correctly configu=
red=20
(it's a named object) :
sockaddr.sdn_family =3D AF_DECnet;
sockaddr.sdn_flags =3D 0x00;
sockaddr.sdn_objnum =3D 0x00; /* for a named object ? */
sockaddr.sdn_objname =3D "TASK";
sockaddr.sdn_objnamel =3D 4;
memcpy(sockaddr.sdn_add.a_addr, np->n_addr,2);
...
etc ....
Even if we configure the accessdata_dn structure, it doesn't works (hope it=
's=20
optional ...).
=46or the moment, we are going to compile a single/simple server with all t=
he=20
API used in the real one : TASK_QIOW (which called itself QIO). ADA is a ve=
ry=20
strange langage (for our point of view) and we need to understand much more=
=20
how it works. But we hope there are no uncompatibility between both (ADA=20
decnet layer and Linux layer) ...
> I think thats the next step. You need to set them before the connect call
> as certain defaults are assumed by the DECnet code if none are set by
> the user. There are some pointers on the DECnet kernel pages as to what
> the parameters are: http://www.chygwyn.com/DECnet/
You have trying to change some parameters (with setsockopt), but without=20
success. We need to continue :-)
> Steve.
Thanks,
Lionel
|