Hello again...
I dont mean to be such a pest here but I really have no idea were to begin looking for this sort of information. The MSDN doesn't help much because its all geared towards MFC and I can't even find anything on how to use FD_READ and FD_WRITE together.
I just want to know how FD_WRITE works with FD_READ. I have used FD_READ in some programs and it works great but FD_WRITE only seems to be called once. I was under the impression that the two complimented each other so that you would know when to send the next block of data. If the FD_WRITE notification only gets sent once how can you have constant communication then. I know I could just rely on the FD_READ notification by sending back a reply that would trigger the FD_READ notification on the other side of the connection but thats too much overhead, doesn't TCP already do this and use the FD_RAD and FD_WRITE to notify you?
I was under the impression that this is how the TCP notification would work. I makes sense to do it this way doesn't it?
I have tried to write a small example of this but FD_WRITE only gets sent once. I really am stuck here and I just spent over $500 bucks on book that will be here in "6-8 weeks". I would really appreciate any help that could be given. Dont get me wrong here, Im not asking anybody to write a working program for me, maybe just point me in the right direction...(smile)
-------------
Cheers
I dont mean to be such a pest here but I really have no idea were to begin looking for this sort of information. The MSDN doesn't help much because its all geared towards MFC and I can't even find anything on how to use FD_READ and FD_WRITE together.
I just want to know how FD_WRITE works with FD_READ. I have used FD_READ in some programs and it works great but FD_WRITE only seems to be called once. I was under the impression that the two complimented each other so that you would know when to send the next block of data. If the FD_WRITE notification only gets sent once how can you have constant communication then. I know I could just rely on the FD_READ notification by sending back a reply that would trigger the FD_READ notification on the other side of the connection but thats too much overhead, doesn't TCP already do this and use the FD_RAD and FD_WRITE to notify you?
I was under the impression that this is how the TCP notification would work. I makes sense to do it this way doesn't it?
Code:
client side server side -------------------------------------------- FD_WRITE: send data -> FD_READ: read data FD_WRITE: send data -> FD_READ: read data FD_WRITE: send data -> FD_READ: read data FD_READ: read data <- FD_WRITE: send data FD_WRITE: send data -> FD_READ: read data
-------------
Cheers
Comment