there is an inconsistence on protocol of getsockopt in socket.ijs and will raise error on execution.

getsockoptJ=: 'getsockopt i i i i * *i' scdm

sdgetsockopt=: 3 : 0
's lev name'=. y
r=. getsockoptJ s;lev;name;(,0);,4   NB. --- the 4-th (base-1) parameter
if. 0~:res r do. 0;~sdsockerror'' return. end.
d=. ''$>4{r
if. name-:SO_LINGER do. 0;65536 65536#:d else. 0;d end.
)

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to