Rate This Document
Findability
Accuracy
Completeness
Readability

CloseConnection

Function Usage

Closes communication connections and destroys communication resources.

Restrictions

This function is an external symbol to be implemented in the communication module by secondary developers. The video stream engine calls this function to close and destroy the specified communication connection. After the communication is interrupted, error codes are returned when SendFully and Recv are called.

Prototype

int CloseConnection(int connection)

Parameters

Parameter

Input/Output

Class

Description

connection

Input

int

Connection handle returned by OnNewConnectionCallback

Returns

Data type: int

The value can be:

  • 0: success
  • Other values except 0: error code