!222 client server channel open func is same

Merge pull request !222 from defeng2020/cwdf
This commit is contained in:
openharmony_ci 2021-08-14 09:05:08 +00:00 committed by Gitee
commit fb50a51b4c
3 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ int32_t TransOnChannelOpened(const char *sessionName, const ChannelInfo *channel
ret = ClientTransProxyOnChannelOpened(sessionName, channel);
break;
case CHANNEL_TYPE_TCP_DIRECT:
ret = TransTdcOnChannelOpened(sessionName, channel);
ret = ClientTransTdcOnChannelOpened(sessionName, channel);
break;
case CHANNEL_TYPE_UDP:
ret = TransOnUdpChannelOpened(sessionName, channel, &udpPort);

View File

@ -42,7 +42,7 @@ typedef struct {
TcpDirectChannelDetail detail;
} TcpDirectChannelInfo;
int32_t TransTdcOnChannelOpened(const char *sessionName, const ChannelInfo *channel);
int32_t ClientTransTdcOnChannelOpened(const char *sessionName, const ChannelInfo *channel);
int32_t ClientTransTdcOnChannelOpenFailed(int32_t channelId);
int32_t TransTdcCheckSeq(int32_t fd, int32_t seq);

View File

@ -148,7 +148,7 @@ static TcpDirectChannelInfo *TransGetNewTcpChannel(const ChannelInfo *channel)
return item;
}
int32_t TransTdcOnChannelOpened(const char *sessionName, const ChannelInfo *channel)
int32_t ClientTransTdcOnChannelOpened(const char *sessionName, const ChannelInfo *channel)
{
if (sessionName == NULL || channel == NULL) {
return SOFTBUS_ERR;