Index_C

 < Day Day Up > 



C

C language

accept call, 165

bind function, 164

broadcast server/client code patterns, 302–305

CD-ROM companion software code patterns, 290

compiler/tools used, 160

connect function, 165–166

connected socket functions, 166–167

creating and destroying sockets, 162

datagram (UDP) server/client code patterns, 294–298

gethostbyname function, 60, 72–74, 170–171

getpeername function, 60, 66, 123, 170–171

getsockname function, 60, 65, 170–171

GNU C compiler suite (GCC), 160

HTTP server code patterns, 305–310

listen function, 164–165

multicast server/client code patterns, 298–302

networking API, 160

origins and heritage, 160

resources, 172

SMTP client code patterns, 310–314

socket addresses, 163–164

socket options, 169–170

Sockets API summary, 161–162

sockets I/O, 166–169

stream (TCP) server/client code patterns, 290–294

unconnected socket functions, 168–169

where to download tools, 160

Callbacks, stack, 138–139

CD-ROM, 429–430

Chunks, 12

Classless InterDomain Routing (CIDR), 17

Clients

binding addresses, 43–44

broadcast client in Tcl, 418–419

broadcast datagram server/client design, 280–281

broadcast server/client

C language, 304–305

Perl, 375–376

Python, 353–354

Ruby, 397–398

client/server symmetry, 32–33

connect function, 38, 47–49

datagram server/client

C language, 294–296

design, 279–280

Java, 323–325

Perl, 348–349

Python, 348–349

Ruby, 392–393

Tcl, 413–415

multicast server/client

C language, 300–302

design, 281–282

Java, 327–329

Perl, 373–374

Python, 350–352

Ruby, 394–396

Tcl, 417–418

Sockets programming example (client.c), 30–32

stream client in Java, 318–320

stream server/client

C language, 293–294

design, 278–279

Perl, 368–369

Python, 346–347

Ruby, 390–391

Tcl, 412–413

Closing sockets

C language, 162

client/server symmetry, 32–33

close function, 38, 55

Java, 181–182

peer socket closure, 106–108, 146

Perl, 218–220

Python, 199–200

Ruby, 243–245

shutdown function, 60, 68–69

SO_LINGER option, 81, 84–85

Tcl, 263–266

Code patterns

broadcast datagram server/client design, 280–281

datagram server/client design, 279–280

multicast datagram server/client design, 281–282

simple HTTP server design, 282–285

simple SMTP server design, 285–287

stream server/client design, 278–279  see also specific languages

Communication modes, 12–13

Compiler warnings, 155

Connections

C language, 165–167

connect function, 38, 47–49

Java, 185–186

Perl, 224–225

Python, 202–203

Ruby, 249

separating control and data, 138

Tcl equivalent, 266

TCP three-way handshake, 44, 49

timing out, 113–116

Converting

addresses, 38, 56–57

byte order, 38, 55–56

Creating sockets

C language, 162

Java, 181–182

Perl, 218–220

Python, 199–200

Ruby, 243–245

socket function, 38, 39–40

Tcl, 263–266



 < Day Day Up > 



BSD Sockets Programming from a Multi-Language Perspective
Network Programming for Microsoft Windows , Second Edition (Microsoft Programming Series)
ISBN: 1584502681
EAN: 2147483647
Year: 2003
Pages: 225
Authors: Jim Ohlund

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net