This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

binary sockets??



Hi,

I'm attempting to port a socket based application from Unix to NT using
gnu-win32. Almost everything ported without a problem. However, I've run into
two problems. The first was the text/binary file problem, solved with liberal
doses of fopen ( f, "wb") and the like.

The second problem is a bit trickier. It seems to be the same sort of problem,
but with sockets. Is there any way to create a binary-mode socket? Is there
in fact even a problem with ^Z on sockets or should I look for another culprit?

The application creates a thin layer on top of sockets for sending information
and files back and forth. As long as I use empty files, everything works. So,
I don't have any connection problems or anything like that. It is just that
some files are getting extra characters added to the end of them.

Any suggestions would be greatly appreciated. I'd especially like to hear from
anybody that has sent binary files back and forth using sockets.

Thanks!

Damon

P.S. - a pointer to a gnuwin32 port of a socket based app would be super!
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]