180 likes | 384 Views
Network Programming. Class 1. Tugas & TR. 5 Tugas 1 TR Beberapa Kejutan. To Do & Not To Do. Don’t Do Anything Stupid. W.T.H is Network Programming. Network programming is client-server programming Client-server model Peer-to-peer model Network programming is socket programming
E N D
Network Programming Class 1
Tugas & TR • 5 Tugas • 1 TR • BeberapaKejutan
To Do & Not To Do • Don’t Do Anything Stupid
W.T.H is Network Programming • Network programming is client-server programming • Client-server model • Peer-to-peer model • Network programming is socket programming • Standard API: Berkeley Socket
Why C#? • Programming Language Jobs
Why C#? • Programing Language Trends
For Java Lovers • Google Trends
What We Gonna Do? • Network Programming Basic • Connection-Oriented Sockets • Connectionless Sockets • Asynchronous Sockets • Threads • Broadcast and Multicast
PING RESULT Pinging google.com [209.85.175.106] with 32 bytes of data: Reply from 209.85.175.106: bytes=32 time=2157ms TTL=53 Reply from 209.85.175.106: bytes=32 time=1255ms TTL=53 Reply from 209.85.175.106: bytes=32 time=878ms TTL=53 Reply from 209.85.175.106: bytes=32 time=709ms TTL=53 Ping statistics for 209.85.175.106: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 709ms, Maximum = 2157ms, Average = 1249ms
GOOD thing gone BAD • The Ping of Death • The Ping Of Death essentially crashes a system by sending a Ping packet that is larger than 65,536 bytes; the default is 64 bytes. • Smurf attack
Summary • Things to learn • Multi-thread Programming • Socket • Packet Analyzer/Sniffer: Windump/Wireshark/Etheral
Summary • Things to do • Get Microsoft Visual C# 2005/2008/2010 Express Edition • Download this file at http://derhimmel.wordpress.com
Summary • Things to remember • http://derhimmel.wordpress.com • perfekte.himmel@gmail.com • do the assignment
Assignment #1 • Buatsebuahaplikasi PING sederhana. • INPUT: alamat server (URL/IP Address). • OUTPUT: server REACHABLE/UNREACHABLE • Kirim via Email Subject ProgJarA(spasi)Tugas1(spasi)NIMLengkap • DEADLINE: January 25th, 2012 11.59pm • .rar NOT .zip • BONUS • kirim via email dengan Subject: ProgjarA(spasi)Tugas1Bonus(spasi)NIMLengkap • 43.7D8.259 • 28.0E0.61C