By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,134 Members | 1,874 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,134 IT Pros & Developers. It's quick & easy.

How to extract size of a packet?

P: n/a
Koo
Look at this example...

SOCKET s;

//you bind and stuff...
//then you recive a paket.

Is there a smart, secure way to get the size of the paket, allocate a
matching buffert and then load the data into it?
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Koo" <io********@hotmail.com> wrote...
Look at this example...

SOCKET s;

//you bind and stuff...
//then you recive a paket.

Is there a smart, secure way to get the size of the paket, allocate a
matching buffert and then load the data into it?


I believe that you're in a wrong newsgroup. C++ does not, never
did, and, hopefully, never will, have any support for networking.
There are libraries for that, they are platform-specific. You
need to ask in a newsgroup dedicated to your platform.
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.