Mark,

Do you do a connect before you try to send? If so, do you check for errors on 
the connect?

I suggest writing a complimentary program to emulate whatever the host at the 
outside vendor will do, and work out the bugs with your two programs talking to 
each other. Then, once you have it all working you can point it at the vendor 
and see what happens.

-Marty

------------------------------

date: Wed, 9 Aug 2006 12:16:45 -0500
from: mgarton@xxxxxxxxxxxxxxx
subject: Socket Descriptor Error

I am working on a project where I connect to an outside vendor using 
sockets.  I am getting a EBADF - "Descriptor not valid" error when I try 
to do a send.  The code that I am using works in other programs.  I 
verified that the socket descriptor is consistent in my program. I am not 
sure what else to check.  Any help would be greatly appreciated. 

Thanks. 

Mark Garton


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.