Index_R

 < Day Day Up > 



R

Raw sockets, 39–40

Read operation

optimizing reading all data, 135–136

select function, 62–64

timing out, 121–122  see also Sockets I/O

Receiving data

optimizing buffer sizes, 131–133

recv function, 38, 50–52

recvfrom function, 38, 50–52

socket buffer size, 81, 86–87

Reliable datagram sockets, 39–40

Retransmission option, 90, 91

Reuse local address option, 81, 89–90

Round-trip time (RTT), 133

Routers

communication and, 4

as network device, 21–22

Routing. see IP Routing

Ruby

accept method, 248–249

BasicSocket class methods, 240

bind method, 246–247

broadcast server/client code patterns, 396–398

CD-ROM companion software, 388

class vs. instance methods, 240

connect method, 249

creating and destroying sockets, 243–245

datagram (UDP) server/client code patterns, 391–393

datagram sockets, 251–252

event notification, 254–256

gethostbyaddress method, 254

gethostbyname method, 253–254

gethostname method, 253

getservbyname method, 254

HTTP server code patterns, 398–403

interpreter/tools used, 238

IPSocket class methods, 242

listen method, 247–248

multicast server/client code patterns, 393–396

Net::HTTP class, 257

Net::SMTP class, 256–257

networking API summary, 239–243

networking API, 238, 256–257

origins and heritage, 238

references and resources, 257–258

SMTP client code patterns, 403–408

socket addresses, 245–246

Socket class methods, 241

socket options, 252–253

sockets I/O, 249–252

stream (TCP) server/client code patterns, 388–391

stream sockets, 250–251

TCP server and select method, 254–256

TCPServer class methods, 243

UDPSocket class methods, 242

where to download tools, 239



 < 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