Guidance
指路人
g.yi.org
Guidance Forums
/
Rapid-Q Basic
/ printing on IP-adress??
最新
搜索
论坛
Reginald Rexx
STC(宏晶)单片机与电路设计
wxWidgets (wxWindows) in C++
奇瑞QQ车友论坛
生活信息交流与学习角
质量与可靠性
Rapid-Q Basic
FreeBasic
Reginald
Forum
Examples
RapidQ
Forum
Bugs
Examples
Resource
RQ Doc
RQ Intro
System
LeonAutoBackup
Home
Software
App
Lib
RapidQ
Reginald
Upload
Chrononet
回顶部
⇑
Forum List
•
Thread List
•
Reply
•
Refresh
•
New Topic
•
Search
•
Previous
•
Next
1
1.
printing on IP-adress??
#1132
Posted by:
qmark
2003-12-04 15:46:23
can sobmody provide code for printing on IP-address using TCP/IP protocol??
2.
Re: printing on IP-adress??
#1133
Posted by:
2003-12-05 10:59:34
This works in HotBasic. Notice that tcp/ip is not used, but rather it is DNS lookup.
$APPTYPE CONSOLE:$TYPECHECK ON: $SYMBOLTABLE ON
DEFLNG i,j,k,p,err
DIM Peer As SOCKET, M As MEMORY
DEFSTR LocalN,LocalIP,f$
COLOR 15: PRINT "My IP address": PRINT: COLOR 7
LocalN=Peer.GetHostName
LocalIP=Peer.GetHostIP
PRINT "Peer.GetHostName=";LocalN
PRINT "Peer.GetHostIP =";LocalIP
LocalN=Peer.NameByAddr(LocalIP)
PRINT "Local NamebyAddr=";LocalN
PAUSE
END
Forum List
•
Thread List
•
Reply
•
Refresh
•
New Topic
•
Search
•
Previous
•
Next
1
掌柜推荐
¥490.00
D1H-5A-70双向齿轮传感器M18*1.5转速方向正反转识别非接触式霍尔
¥1,800.00
SDE-AE2H-AC CRS17差动转速速度继电器超速报警带恒定差速控制
¥1,370.00
SRE-AD2H-AC智能速度继电器20mA转速电流变送器显示转速监控模块
¥1,390.00
SRE-AE3H SRE-AE3M速度继电器转速监控超速保护数显转速表20mA
¥950.00
SRE-PD3H CRS123 超速保护继电器速度监控器转速显示欠速零速报警
¥308.00
N1H-1A-70转速传感器M12*1长70测齿轮有源带插头高转速双福直销
©
Fri 2024-4-19
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0