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
掌柜推荐
¥307.00
N1H-3A-70转速传感器M16*1.5长70测齿轮有源带插头高转速双福直销
¥477.00
D1H-5A-44双向齿轮传感器M18*1.5转速方向正反转识别非接触式霍尔
¥410.00
VMM-R52-B直流电压表DC7~25V指针式带背光可定制电压范围
¥750.00
SRE-PE0H CRS185转速表5位数显数字式测速仪双福
¥900.00
双福SRE-PD3M CRS184速度继电器转速监控柴油机超速保护监视仪
¥430.00
TMM-R52-BM转速表500-14000转/分背光指针不锈钢可接发电机测速
©
Sat 2024-10-5
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0