ExistQt
|
The ServicePublisher class 这个类用于向局域网中发布服务。这是ExistCpp的主要接口。 更多...
#include <ServicePublisher.h>
信号 | |
void | serviceDiscovered (QString serviceName, quint16 servicePort, ServicePublishMessage::ServiceProtocolType serviceProtocolType, string address) |
serviceDiscovered 信号,发现了服务。 更多... | |
void | shoudCastData (string datagram) |
shoudCastData 信号,应当发送数据。 更多... | |
Public 成员函数 | |
void | publishService (QString LanServiceName, quint16 LanServicePort, exist::ServicePublishMessage::ServiceProtocolType LanServiceProtocolType) |
发布服务。 更多... | |
void | quit () |
退出。 更多... | |
ServicePublisher () | |
默认构造函数。 更多... | |
~ServicePublisher () | |
析构函数。 更多... | |
The ServicePublisher class 这个类用于向局域网中发布服务。这是ExistCpp的主要接口。
在文件 ServicePublisher.h 第 18 行定义.
ServicePublisher::~ServicePublisher | ( | ) |
析构函数。
ServicePublisher::~ServicePublisher 析构函数。
在文件 ServicePublisher.cpp 第 62 行定义.
参考 com::stupidbeauty::exist::ExistMessage::messagetype(), com::stupidbeauty::exist::ServicePublishMessage::name(), com::stupidbeauty::exist::ServicePublishMessage::port(), com::stupidbeauty::exist::ServicePublishMessage::protocoltype(), serviceDiscovered(), com::stupidbeauty::exist::ExistMessage::servicepublishmessage() , 以及 shoudCastData().
ServicePublisher::ServicePublisher | ( | ) |
void ServicePublisher::publishService | ( | QString | LanServiceName, |
quint16 | LanServicePort, | ||
exist::ServicePublishMessage::ServiceProtocolType | LanServiceProtocolType | ||
) |
发布服务。
ServicePublisher::publishService 发布服务。
LanServiceName | 服务名字。 |
LanServicePort | 服务端口。 |
LanServiceProtocolType | 服务协议类型。 |
在文件 ServicePublisher.cpp 第 30 行定义.
参考 com::stupidbeauty::exist::ExistMessage::mutable_servicepublishmessage(), com::stupidbeauty::exist::ExistMessage::set_messagetype(), com::stupidbeauty::exist::ServicePublishMessage::set_name(), com::stupidbeauty::exist::ServicePublishMessage::set_port(), com::stupidbeauty::exist::ServicePublishMessage::set_protocoltype() , 以及 shoudCastData().
void ServicePublisher::quit | ( | ) |
|
signal |
serviceDiscovered 信号,发现了服务。
serviceName | 服务名字。 |
servicePort | 服务端口号。 |
serviceProtocolType | 服务的协议类型。 |
address | 服务的主机地址。 |
参考自 ~ServicePublisher().
|
signal |
shoudCastData 信号,应当发送数据。
datagram | 数据包。 |
参考自 publishService() , 以及 ~ServicePublisher().