SemysLinkAddConnectionIdentifiedProt |
01 | Adds an existing connection that received a first handshake message to a link. |
02 |
int32 SemysLinkAddConnectionIdentifiedProt(HSemysLink link, HSemysConn conn, HSemysGatherer gath, SemysConnName const *pConnName, int32 verified); |
03 |
Parameters:
|
04 |
Return Values: Nonzero if the connection could be added, 0 otherwise. |
05 | If the connection can be successfully added to the link, it takes over control of the connection and gatherer. The user can drop any associated data about them. |
06 | This function is used when a server is shared between several links. The user handling the server first has to await the first handshake packet from the other link (which includes the link name) to assign it to the corresponding link. |
07 | The 'verified' parameter typically is always false (0) because the connection ought to be added to a link the moment it received the first handshake message. A verified connection would require more packet exchanges. |
08 |
Sharing a server for several links imposes some responsability on the user; The
user code must:
|
09 |
Global Lock: Required Reference: SemysLink.h Implementation: Semys Library See Also: Link Sub-System, SemysLinkAddConnectionProt(), SemysLinkAddConnectionNewProt() |
Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details. |