MCU User Forum
  mn_open() and mn_send()???

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   mn_open() and mn_send()???
buddyCP2200
New Member
posted June 20, 2007 03:29 AM     Click Here to See the Profile for buddyCP2200   Click Here to Email buddyCP2200     Edit/Delete Message
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
posted June 20, 2007 08:08 AM     Click Here to See the Profile for KevinH     Edit/Delete Message
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
posted June 20, 2007 11:58 AM     Click Here to See the Profile for Tsuneo   Click Here to Email Tsuneo     Edit/Delete Message
I fully agree with Kevin.

Tsuneo

IP: Logged

buddyCP2200
New Member
posted June 20, 2007 07:34 PM     Click Here to See the Profile for buddyCP2200   Click Here to Email buddyCP2200     Edit/Delete Message
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

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | MCU User Forum

Have you seen our MCU Knowledge Base?


Ultimate Bulletin Board 5.47b