... xvii
Conventions used in this book xvii
Further information xviii
Acknowledgments xix
1 Understanding the Internet and Network Programming 1
1.1 Introduction 1
1.2 Why network programming in .NET? 2
1.3 ...
Figure 1 .6
Visual Studio
.NET, form at
runtime.
Network Programming
in .NET
6
1.5
The network stack
This is used on intranets to identify computers...
... two
threads: one handles incoming UDP data, and the main thread of execu-
tion may continue to maintain the user interface, so that it does not appear
hung. The details of threading are not within the scope ... TcpListener(IPAddress.Any,8080)
C#
public void handlerThread()
{
Socket handlerSocket = (Socket)alSockets[alSockets.Count-1];
NetworkStream networkStream = new
NetworkStream(ha...
... socketReadLine(ByVal socket As Socket, _
ByVal terminator As String) As String
Dim lastRead As Int 16
Dim streamData As String
Dim networkStream As New NetworkStream(socket)
Do
lastRead = networkStream.ReadByte()
... server.
And, the usual namespaces are thrown in:
C#
using System.Threading;
using System .Net;
using System .Net. Sockets;
using System.Text;
using System.IO;
VB .NET...
... support for interoperating with Netware in .NET, and
it is no small undertaking to integrate a .NET application with a Novell net-
work. If you have to do so, look at the DOS command-line interfaces ... developers
working with real-world networks. It is designed to help solve network
problems for individual scenarios and provide tips and tricks to keep your
software from cr...
... may contain more information about the original
message. In either case, SHA1 should be sufficient.
9.4.2 Using SHA
Create a new Windows application in Visual Studio .NET as usual, and
draw ... address and, thus, can use IP
addresses as credentials. When developing a Windows-only intranet appli-
cation, you can trust Windows logins. Internet service developers may use a
combinat...
... authoritative in the domain. DNS servers routinely query each
other for updated information, and in this way the information slowly
10.8 Load balancing 269
Chapter 10
C#
public void run()
{
string sURL ... resource for creating AVI files programmatically is
www.shrinkwrapvb.com. The code examples are in Visual Basic 6. 0, but they
can be ported to VB .NET from within Visual...
... concludes with information
about how to use new classes introduced in .NET 2.0 Whidbey to gather
systemwide network information.
13.2 IP-level network tapping
Network tapping anything that ... raw TCP data flowing
between your browser and the Web server appear in the list box, as shown
in Figure 13.2.
13.2.1 Interpreting raw network data
Capturing and interpreting r...
... MMCKINFO mmckinfoParentIn = new MMCKINFO();
MMCKINFO mmckinfoSubchunkIn = new MMCKINFO();
int hmmioIn = 0;
mmioinfo mmioinf = new mmioinfo();
mmioinf.adwInfo =
(new StringBuilder()).Append(' ...
14.3
Listening for incoming phone calls 391
Chapter 14
C#
public delegate int LineCallBackDelegate(int dwDevice, int
dwMessage, int dwInstance, int dwParam1, int dwParam2,
int dwPar...
...
16. 6
Installing IPv6 457
Chapter 16
16. 6 Installing IPv6
If you have Windows XP, you can install IPv6 by simply typing
IPv6
install
at the command prompt. To test IPv6 on Windows ... forwarding and adver-
tising on the automatic tunneling pseudointerface, using the following
command (with the interface ID substituted accordingly):
netsh interface ipv6 set interface <
in...