|
|
|
|
- Procedure for stream detection
StreamInfo (Function) In french: FluxInfo Returns the name and/or number of the stream issuer. This allows you to get information about the incoming connection before accepting it. // Retrieves the name of stream issuer CallerName is string = StreamInfo(StreamID) // Retrieves the number of the stream issuer CallerNumber is string = StreamInfo(StreamID, StreamCallerNumber) Syntax
<Result> = StreamInfo(<Connection ID> [, <Requested information>])
<Result>: Character string Name or number of the stream issuer. <Connection ID>: Integer Connection identifier (found in the "Connection request of new stream" event). <Requested information>: Optional Integer constant Information to return: | | StreamCallerName (default value) | Name of the stream issuer. In WLanguage, this name can be returned by the Identifier property. | StreamCallerNumber | Number of the stream issuer (IP address for example). |
Remarks Procedure for stream detection A stream is associated with the "Connection request of new stream" event. This event is run when a request to connect to an incoming stream is detected. This event is run in one of the following cases: - if the Detection property applied to the stream is set to True.
- if the option "Detection of active incoming streams" has been checked in the stream description window.
Remark: This event is run in a specific thread of WLanguage. Therefore, it is subject to limitations specific to the threads. For more details on threads, see Managing threads with WINDEV.
Related Examples:
|
Unit examples (WINDEV): The Conference control
[ + ] Using the "Conference" control: - Establish the connection with another user - Communicate (image and sound) with another user via network - Close a connection
|
|
Complete examples (WINDEV): WD Video Conference
[ + ] This example uses the Conference control and presents the use of sockets via an instant messaging. WD Video conference enables you to start a conference (sound + video) with a remote user. Furthermore, with instant messaging, you have the ability to send a file to your contact and to dialog with him.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|