Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

通过telnet调用Dubbo接口

### Example

```python
import dubbo_telnet

Host = '192.168.1.203' # Doubble服务器IP
Port = 28008 # Doubble服务端口

# 初始化dubbo对象
conn = dubbo_telnet.connect(Host, Port)

# 设置telnet连接超时时间
conn.set_connect_timeout(10)

# 设置dubbo服务返回响应的编码
conn.set_encoding('gbk')

interface = 'com.zrj.pay.trade.api.QueryTradeService'
method = 'tradeDetailQuery'
param = '{"message": "HelloWorld"}'
print conn.invoke(interface, method, param)

command = 'invoke com.zrj.pay.trade.api.QueryTradeService.tradeDetailQuery({"message":"HelloWorld"})'
print conn.do(command)
```

Release files for dubbo_telnet 1.0.1b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dubbo_telnet 1.0.1b3
File Size Uploaded
dubbo_telnet-1.0.1b3.tar.gz 3.6 kB Details

Release files / dubbo_telnet-1.0.1b3.tar.gz

Download URL dubbo_telnet-1.0.1b3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c32f6461821e635ca23f2508e45d27b6f54b05d4830ab746fbe2c675825c5e9f
BLAKE2b-256 checksum
How to use checksums
ca719249b738352fc92e3d7d4d443bb49ee9223a25e371cd1582fa1cdc97bdc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page