NetTalkN

所属分类:网络编程
开发工具:Visual C++
文件大小:57KB
下载次数:30
上传日期:2007-05-01 02:17:39
上 传 者yanghx
说明:  实现了子网广播地址的自动计算。这应该是原来版本中最不好用的一个问题。时不时有网友发邮件给我,说在他们的局域网中用不了。问题其实就是子网广播地址,我是把适用我们公司用的子网广播地址写死在程序了。在其他的局域网中用,要改这个值并重新编译。所以这次把这个问题做掉了,不过解决的并不彻底。程序可以自动取到本机的IP地址,并根据该IP地址的子网掩码计算出子网广播地址。但一台机器上有可能装多个网卡,并绑定多个IP地址,一些虚拟计算机软件也会产生一些虚拟的网卡。我是最不喜欢在程序中加dialog的,所以我就自做主张的取了第一块网卡的第一个IP地址,对于绝大多数的机器这就足够了。如果你不希望用第一块网卡的第一个IP地址,请自己修改程序目录下的conf.ini文件,填入IP地址和相应的子网广播地址就可以了。子网广播地址的计算方法为:(0xFFFFFFFF ^ 子网掩码) | (IP地址 & 子网掩码)。
(realized the subnet broadcast address to the automatic calculation. This should be the original version of the worst of a problem. From time to time a netizen mail to me that in their LAN impossible. Is actually subnet broadcast address, I can apply to our company with the subnet broadcast address was dead in the proceedings. In other LAN used to change the value and recompiled. So, the issue of doing the swap, but is not completely resolved. Automatic procedures can be obtained from the machine's IP address, and according to the IP address and Subnet Mask calculated subnet broadcast address. However, a machine may be loaded with multiple cards, and bundled with a number of IP addresses, Some virtual computer software will also have some virtual card. I most dislike the process increas)

文件列表:
版权信息.txt (1772, 2006-02-12)
说明.TXT (1652, 2006-02-12)
conf.cpp (1266, 2006-03-01)
conf.h (909, 2006-03-01)
res\CVS\Entries (202, 2006-02-27)
res\CVS\Entries.Extra (119, 2006-02-27)
res\CVS\Entries.Extra.Old (119, 2006-02-21)
res\CVS\Entries.Old (202, 2006-02-21)
res\CVS\Repository (13, 2006-02-12)
res\CVS\Root (26, 2006-02-12)
res\CVS (0, 2006-03-01)
res\icon1.ico (1078, 2006-02-20)
res\icon2.ico (1078, 2006-02-21)
res\NetTalkN.exe.manifest (590, 2006-02-20)
res\NetTalkN.ico (4846, 2006-02-20)
res\Thumbs.db (6656, 2006-02-27)
res (0, 2006-02-21)
aboutdlg.cpp (40, 2006-02-12)
aboutdlg.h (1874, 2006-03-01)
def.cpp (4964, 2006-03-01)
def.h (4006, 2006-03-01)
emotion.cpp (38869, 2006-02-12)
history.TXT (3003, 2006-03-01)
main.cpp (30495, 2006-03-01)
main.h (5109, 2006-03-01)
maindlg.CPP (11516, 2006-03-01)
maindlg.h (5332, 2006-03-01)
NetTalkN.cpp (1664, 2006-02-12)
NetTalkN.h (15, 2006-02-12)
NetTalkN.rc (11056, 2006-02-22)
NetTalkN.sln (905, 2006-02-12)
NetTalkN.vcproj (6574, 2006-03-01)
resource.h (1316, 2006-02-22)
retail.txt (3453, 2006-02-12)
stdafx.cpp (285, 2006-02-12)
stdafx.h (955, 2006-02-12)
string_auxiliaries.cpp (156, 2006-02-12)
string_auxiliaries.h (194, 2006-02-12)
trayiconimpl.h (5359, 2006-02-22)

近期下载者

相关文件


收藏者