Skip to content

silgy_usr_send_message

Jurek Muszyński edited this page May 13, 2019 · 3 revisions

int silgy_usr_send_message(int ci)

Description

Saves a message from user. ci is the connection index passed by the engine to silgy_app_main(). The message is saved in users_messages table.

silgy_usr_xxx functions directly read the query string / payload data.

Request must contain the following parameters:

  • msg_box

and optionally:

  • email

Returns

Returns OK or one of the error codes:

  • ERR_INVALID_REQUEST
  • ERR_INT_SERVER_ERROR

Example

See silgy_app_main function in silgy_app.cpp in Toy Facebook project.

Notes

Requires USERS compilation switch.

Clone this wiki locally