Implementing messaging protocols (IOCP socket server)
- From: "Kürşat" <xx@xxxxxx>
- Date: Mon, 26 Nov 2007 10:30:34 +0200
Hi,
I try to implement a messaging protocol in my IOCP based socket server. I
decide to use message header approach in my implementation. The header will
simply contain length of the actual message. If, for example, length of the
header is 5, first I will post a WSARecv () with a 5-byte buffer.When this
function completes, one of my IOCP workers will get the header(i.e. length
of the message body) and post another WSARecv () to get actual message. The
problem is that if a client application sends a message with wrong header
then the server gets wrong message length and communication between the
server and that client is broken (most likely remain broken along that
session). Do you have recommendations about this issue and about building
messaging protocols in general?
Thanks in advance.
.
Relevant Pages
- Impelementing messaging protocols (IOCP socket server)
... I try to implement a messaging protocol in my IOCP based socket server. ... decide to use message header approach in my implementation. ... (microsoft.public.win32.programmer.kernel) - Re: Impelementing messaging protocols (IOCP socket server)
... I try to implement a messaging protocol in my IOCP based socket server. ... decide to use message header approach in my implementation. ... communication between the server and that client is broken (most likely ... (microsoft.public.win32.programmer.kernel) - [NT] Port80 Software ServerMask Inconsistencies
... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... IIS servers by obfuscating header fields within HTTP responses: ... "ServerMask 2.0 removes or modifies unnecessary response data. ... provide reliable clues to the server being Microsoft IIS. ... (Securiteam) - Re: minimal httpd response
... RST, abortively closing the connection. ... The responsibilities of an HTTP/1.1 proxy, and of an HTTP/1.1 server ... user agent, without a proxy, first, and then try to deal ... Connection header; with a Content-length header; or with the chunked ... (comp.programming) - Re: I want my MOM
... >> 5) Require that the header MUST have the content-length ... >> again slam the server with never ending data until it dies. ... server to have a reason to boot bad clients. ... Another thing a pre-sized protocol does is make it much harder to have ... (comp.lang.ruby) |
|