Closing a socketconnection
Wednesday, 13 April 2022 · 2 messages · last reply 14 Apr 2022
BE
Ben Engbers13 Apr 2022 15:53 #
Hi,
While reading the basexdbc.c code from Alexander Holupirek, I saw that he explicitly sends the 'exit' command to the server before closing the socket. I couldn't find anything on this command in the client server protocol.
Is it necessary to send this command to the server? If so what is the effect of sending this command?
Ben Engbers
CG
Christian Grün14 Apr 2022 10:55 #
Hi Ben,
The exit command shouldn’t be required (but my knowledge on C is limited and I haven’t checked the implementation in more detail).
Best,
Christian
Quoted text · Ben Engbers · 13 lines
On Wed, Apr 13, 2022 at 3:54 PM Ben Engbers <Ben.Engbers at be-logical.nl> wrote: > > Hi, > > While reading the basexdbc.c code from Alexander Holupirek, I saw that > he explicitly sends the 'exit' command to the server before closing the > socket. I couldn't find anything on this command in the client server > protocol. > > Is it necessary to send this command to the server? If so what is the > effect of sending this command? > > Ben Engbers
Written for BaseX 9.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery