tags:

views:

122

answers:

4

Im getting into Winsocks and is there any reference to tell me what a packet is. Like UDP/TCP Packets?

+3  A: 

A good starting point for TCP/IP is here: http://en.wikipedia.org/wiki/Internet_Protocol_Suite, and for UDP here: http://en.wikipedia.org/wiki/User_Datagram_Protocol

In addition, this looks like a pretty good introduction to Winsock in C++: http://www.madwizard.org/programming/tutorials/netcpp/

Robert Harvey
+1  A: 

Google is your friend here. If anything is available on the internet it is TCP/IP information.

This is as good a start as any. When you get really serious this is as close to a classic text as there is.

Duck
+1  A: 

A packet is a small "chunk" of data. Usually when you send data over a network, it cannot go in a complete piece (actually it could but networks don't work like that because it's faster to send data in pieces). It is broken up into packets, segments, and datagrams

Matt
Great Example but he did better but +1 Loved the diagrams
H4cKL0rD
A: 

a packet is small piece of data witch can be transferable over a network. in it data is packed along with check sum for error checking. For UDP - you can say it is nothing but broadcasting of messages(Packets) with no acknowledgment. And For TCP/IP - It is protocol for transferring data over network

Neo