Hi,
Can someone give me a link to a documentation EXAMPLE on how to implement a network protocol using C language. Thanks for your help.
Hi,
Can someone give me a link to a documentation EXAMPLE on how to implement a network protocol using C language. Thanks for your help.
Any specifc network protocol? A network protocol is basicly a set of rules that those using the protocol adheres to; when sending this message i expect to get this back, this message has this structure and so on. How such a protocol is designed is completely application-specific.
Go read the networks section of these boards, they have links that will give you a start, eg how to get 2 programs communicating over network.
Thanks, i know how networks works (Sockets,...etc) i want to implement by my self a simple protocol with headers, payloads, checksums... and some messages exchanging so i want an example documentation.
Thanks for help.
Well I think you will be hardpressed to find anything like a tutorial for implementing a network protocol. There may be books that take this approach but that I don't know. If I were you I would just start communicating betwean 2 programs and then just add rules to the protocol, making sure they work as expected and so on.
Winsock Programmer’s FAQ: Winsock Programmer's FAQ
If you're looking for headers, etc. Keep in mind that every network packet has it's own header applied by TCPIP... pretty much all you need to worry about it your data.
Thanks CommonTater, i'm using Linux. And i want a documentation that explain how to implement FSM of the protocol, sending messages, answer messages... Etc.
Thanks.
Winsock and Linux sockets are close enough you should be able to suss it out... Read the tutorial before you condemn it.
i'm not against Windows