One of Osman, Cinar or Eren presumably - none of which matches "BR"

If you are using the flavour of C sockets described in Chapter 10 of the z/OS 
Communications Server IP Sockets Application Programming Interface Guide 
and Reference manual, you are trying to use an unsupported function.

If you are not, then the rest of my post does not apply!

You should note the "Note" right at the beginning of Chapter 10 that this 
flavour of sockets support is not to be enhanced further. If you study - 
carefully since it's all a bit complicated! - the section "Introducing TCP/IP 
concepts: Socket libraries" in Chapter 1. Introducing TCP/IP concepts, you will 
find the following sentence:

<quote>

The native TCP/IP C socket library is not POSIX compliant and it should not be 
used for new C socket program development.

</quote>

Long ago - c. 1994 - I used to play with this flavour of sockets programming 
since it was the only game in town. When I read your post, I did not 
remember noting SO_RCVTIMEO as a SETSOCKOPT() call option and, indeed, 
with this flavour of sockets support, it does not exist.

You can position your cursor at the beginning of Chapter 10 in a PDF file of 
the manual, search for SO_RCVTIMEO and you will find the first hit in Chapter 
12.

Or

You can go to the description of the SETSOCKOPT() call and search - in vain -
 for the SO_RCVTIMEO option under "keywords recognized at the socket level".

Chris Mason

On Tue, 6 Apr 2010 06:40:48 -0700, osman cinar eren 
<[email protected]> wrote:

>Hi,
>
>I work on a C program on our zOS 1.9 environment. I want to learn if we can 
set timeout values on sockets, i.e.:
>
>struct timeval r;
>r.tv_sec=0;
>r.tv_usec=100000;
>... /*socket yaratılıp servera connect olunuyor*/
>optres=setsockopt(sockfd,SOL_SOCKET,SO_RCVTIMEO, &r,sizeof(struct 
timeval));
>
>The setsockopt function above returns an error whose explanation is:
>EDC5042I A special internally-generated memory file name was specified for 
opening, but a memory file with this name does not exist. (errno2=0x00000000)
>
>
>I will appreciate any help/comments on this problem. Can we use 
SO_RCVTIMEO socket option? If yes, what may be my problem?
>
>BR..

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to