in reply to Re: Server/client sync - when can I write to a socket?
in thread Server/client sync - when can I write to a socket?
Anyway - yes forking method (IO::Socket::INET) is already used for the other protocol (SMPP) server - I just thought that module itself (Net::SMPP) is taking care of that synchronization - when in reality (since we figured that both sides can write at the same time) it is doing exactly the same as I need to do for UCP - each operation/message/reply sent to one another has a "stamp" by which you match operation and reply. Communication is async in that you can send several messages, and then latter get responses for all of those - that they are accepted/rejected.
Now knowing that both sides can write to the socket at the same time - everything makes perfect sense.
|
---|