Sponsored Content
Top Forums Programming recv() problems using AIX 4.33 Post 50126 by hazard0007 on Friday 16th of April 2004 12:31:32 PM
Old 04-16-2004
recv() problems using AIX 4.33

I am opening a server socket on one of our machines and connection to it on the other machine. After making the connection if ether one of the systems does a recv() and ther is no data to receive then the buffer is filled with spaces and returns. I have no way of knowing if it is valid or not. How do I get the system to return a -1 bytes received to indicate that there is nothing to be received.

This becomes a big problem when sending large files and the buffer is empty so the middle of the file is filled with blank spaces (HEX(20)).

Thanks.
 

10 More Discussions You Might Find Interesting

1. IP Networking

TCP Programming problems with 'recv'

Hey, I am learning to program a TCP server and managed to get it up and running (I am using Windows 98SE). I can use the send function to send information to the client and I can use the recv function to ask the user to pass information through, but when I do so it only allows the client to... (1 Reply)
Discussion started by: KrazyGuyPaul
1 Replies

2. AIX

AIX 4.3.3.0 routing problems

Hello guys. I have a AIX running an ip of 128.2.1.85 255.255.255.0, Main office router is 128.2.1.2 .we just got an t1 line point to point for a remote office with to pcs. My question. I'm not able to ping those pcs one of them is using this ip 128.2.2.128 255.255.255.0 Remote router ip... (2 Replies)
Discussion started by: josramon
2 Replies

3. AIX

Problems with scp in AIX-5.2

I am using ssh version OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.6l When i ssh to this server its working fine ,sftp is also fine ,but when i use scp to copy files to it i am prompted for the password and on entering it throws up the following error stty: tcgetattr: A... (1 Reply)
Discussion started by: arnab
1 Replies

4. AIX

Problems install Aix 5.3

Hello I have a server that I want to install Aix 5.3, first I change on the sms to install device from the cdrom, when I boot the server on the display hangs up on the message E443 and nothing happens. Who Can I resolve this. Thanks in advance for your comments. (3 Replies)
Discussion started by: lo-lp-kl
3 Replies

5. AIX

Problems insalling aix 4.3

Hello, I am an AIX newbie and I am having some difficulties installing 4.3. I need the installation to be 4.3, nothing newer, because that is a customer requirement. I did an initial install and just chose a default installation, but that has filled up the /usr to 100% and I'd just like to start... (13 Replies)
Discussion started by: subotai
13 Replies

6. AIX

Problems AIX and SAN.

Sorry for my english. We have a IBM BLADES JS21. AIX 5.3 update to 6. Our JS21 has 2 FC (fcs0 and fcs1). We have one DS4072, one Disk system with 2 controllers and 2 FC by controllers. This means, all AIX FC see all Disk systems controllers by 2 FC switchs. (one fc two roads) FC AIX... (4 Replies)
Discussion started by: fjgonzalez
4 Replies

7. AIX

problems with gcc on AIX 4.33

I just installed gcc on AIX 4.33, and I am having some problems with compiling a simple hello world program. See output below for the issue. The "standards.h" file is not on my system and I don't know where to get it. Thanks in advance for your help! # gcc -v Reading specs from... (2 Replies)
Discussion started by: jhall
2 Replies

8. AIX

Problems with sendmail on AIX

hi, i got this error, i have no idea where to start.. anyone please??? Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .c f file is version 9 WARNING: local host name (BAANPRO) is not qualified; see cf/README: WHO AM I? Running /var/spool/mqueue/o3CBj3np1138768... (3 Replies)
Discussion started by: fdeivis
3 Replies

9. AIX

various problems in aix

I have some doubts 1. Count the number for fields in a file, being separated by "space" 2. Reverse the order of fields in a file 3. Show the date after 10 days from the current date. (DD-MM-YYYY) 4. Convert GMT to IST (User Gives GMT and IST must be displayed) 5. Delete Duplicate... (1 Reply)
Discussion started by: tsurendra
1 Replies

10. AIX

AIX 5.3 performance problems

Hello, I encounter some performance issues on my AIX 5.3 server running in a LPAR on a P520. How do I investigate performance issues in AIX. Is there any kind of procedure that takes me to the steps to investigate my server and find the sub systems that is causing the issues? The performance... (1 Reply)
Discussion started by: petervg
1 Replies
curl_easy_recv(3)						  libcurl Manual						 curl_easy_recv(3)

NAME
curl_easy_recv - receives raw data on an "easy" connection SYNOPSIS
#include <curl/easy.h> CURLcode curl_easy_recv( CURL *curl, void *buffer, size_t buflen, size_t *n); DESCRIPTION
This function receives raw data from the established connection. You may use it together with curl_easy_send(3) to implement custom proto- cols using libcurl. This functionality can be particularly useful if you use proxies and/or SSL encryption: libcurl will take care of proxy negotiation and connection set-up. buffer is a pointer to your buffer that will get the received data. buflen is the maximum amount of data you can get in that buffer. The variable n points to will receive the number of received bytes. To establish the connection, set CURLOPT_CONNECT_ONLY option before calling curl_easy_perform(3). Note that curl_easy_recv(3) does not work on connections that were created without this option. You must ensure that the socket has data to read before calling curl_easy_recv(3), otherwise the call will return CURLE_AGAIN - the socket is used in non-blocking mode internally. Use curl_easy_getinfo(3) with CURLINFO_LASTSOCKET to obtain the socket; use your operating system facilities like select(2) to check if it has any data you can read. AVAILABILITY
Added in 7.18.2. RETURN VALUE
On success, returns CURLE_OK, stores the received data into buffer, and the number of bytes it actually read into *n. On failure, returns the appropriate error code. If there is no data to read, the function returns CURLE_AGAIN. Use your operating system facilities to wait until the data is ready, and retry. EXAMPLE
See sendrecv.c in docs/examples directory for usage example. SEE ALSO
curl_easy_setopt(3), curl_easy_perform(3), curl_easy_getinfo(3), curl_easy_send(3) libcurl 7.18.2 29 April 2008 curl_easy_recv(3)
All times are GMT -4. The time now is 04:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy