|
![]() MCU User Forum
![]() mn_open() and mn_send()???
|
| next newest topic | next oldest topic |
| Author | Topic: mn_open() and mn_send()??? |
|
buddyCP2200 New Member |
I defined a data buffer(data_buf[100]),then fill the data_buf in the relevant place in the mn_open().In the model,I want to know what's the process of the data_buf? If I use the same data_buf in the mn_send(),how about the results? Can I use the same data_buf in the mn_open() and mn_send()? Thanks for your advice!Tsuneo IP: Logged |
|
KevinH Member |
If the socket never receives data, it seems like you could use the same buffer. I believe the buffer info is included in mn_open for the case in which you are using mn_server to send and receive data. When the server is running, you would not be making calls to mn_send or mn_recv, so the receive buffer needs to be defined in the mn_open call. You'll note that mn_recv also has parameters for defining the receive buffer. Tsuneo, please correct me if this information is incorrect. IP: Logged |
|
Tsuneo Member |
I fully agree with Kevin. ![]() Tsuneo IP: Logged |
|
buddyCP2200 New Member |
in the callback_app_server_idle(),I use data_buf in the mn_send() to send data,and never use it in other place to send or receive data,under this condition,I can send or receive data correctly,is it right about my way? IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?