recv() problems using AIX 4.33


 
Thread Tools Search this Thread
Top Forums Programming recv() problems using AIX 4.33
# 1  
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.
# 2  
Old 04-16-2004
recv() error.

Thanks for your reply. I found that I did have an error in the recv call. I have corrected the call and it works just fine now. Thanks alot for your time.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question