> I have an application that uses IOCP.  Thanks in great part to the
> folks on this list, it has been working very well.  I connect to
> multiple devices and receive the data from them with no problem. At
> this point, the need has been only to monitor the data sent from these
> devices ( once per second).
> A modification in the specs now requires that the application send
> data to these devices.  This sending of data is totally asynchronous
> with regard to the receiving of information.  I have a structure
> derived from OVERLAPPED that I use to manage the receive buffer and
> that is used in conjunction with the IOCP to tell me from which device
> the information is coming.
> When I am preparing to use WSASend, do I need to allocate a separate
> OVERLAPPED struct or can I use the existing one by adding a send
> buffer to my already present receive buffer?
> My first attempts at this always result in garbled messages being
> received by the device.  Any suggestions are greatly appreciated.

I also think you should use separate OVERLAPPED structs.  Does your messages
get through correctly this way?

-------------
Ehsan Akhgari

Farda Technology (http://www.farda-tech.com/)

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]

"The brightest future will always be based on a forgotten past."




_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to