[Linux-decnet-user] Question about "Rejected by object" (DNSTAT_REJECTED)
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Lionel T. <lio...@fr...> - 2003-09-23 21:26:36
|
Howdy all, 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. I use the "socket" function (args : AF_DECNET,SOCK_SEQPACKET, DNPROTO_NSP), and after i call the "connect" function with sockadd structure filled with family=AD_DECNET, FLAGS=0x00, OBJNUM=0, OBJNAMEL=4 and OBJNAME="TASK". The remote server receive a connection but crash with an obscur "exception" (i'm not familiar with ADA!). On the client side, i try to trap the error by using getsockopt like following : getsockopt(sockfd, DNPROTO_NSP, DSO_DISDATA, &optdata, &len). The opt_status return DNSTAT_REJECTED. I have to say that i have to create a non blocking socket with fcntl(sockfd,F_SETFL, ONONBLOCK) in order to get that kind of information. A blocking socket is failing too but i have no possibility to get an error code. So, if someone know something about that kind of error, he would be welcome! I don't understand how networking works under ADA and, for the moment, the source code is really difficult to read. In particular, parts about networking. Hope that decnet socket is very close to the linux side under ADA : someone already use that kind of stuff ? For the moment, i try to understand the setsockopt() arguments to modify parameters of the socket, but it's not very clear. Thanks, Lionel Tricon |