Forum Discussion
Altera_Forum
Honored Contributor
19 years agotcp socket program puzzle
Hello everyone: I am learning and testing TCP socket program. In my application, I want to send and receive a great deal of data at one time. So the quantity of data exceed the size of array I...
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by helmchen@Jan 23 2007, 05:10 PM if i understand you right, you cannot define a buffer, which is big enough; for example:
char buffer;
so if i'm right you should try to use the malloc function ; in this case (*edit* for buffers greater than 1mb) you need to enable a kernel option to do so (for big portions of memory):
processor type and features --> allow allocating large blocks.... greets
helmchen
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20794)</div> --- Quote End --- Thank you helmchen, you have understand me right. Can I ask two more questions? 1, I have seen the option in the configure interface, but I wonder the kernel take use of what for the large blocks? 2, Can I just use the limited buffer to carry out large data transmission? For example, send several times?(I have tested, but still can't find good methods..) Thanks again http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif