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
掌柜推荐
¥860.00
·
¥900.00
·
¥810.00
·
¥317.00
·
¥1,370.00
·
¥660.00
·
©
Sun 2024-11-24
Guidance Laboratory Inc.
Email:
webmaster1
g.yi
.
org
Hits:
0