ࡱ> DFE( / 00DTimes New Romanbbv 0b( 0DComic Sans MSnbbv 0b( 0B DTahomaans MSnbbv 0b( 0"0DWingdings MSnbbv 0b( 0c.  @n?" dd@  @@`` X(J^7.-O." bR$' 7     c $0e0e     A@  A8c 8c8c     ?1 d0u0@Ty2 NP'p<'pA)BCD|ES"@8Xuʚ;i')ʚ; g4XdXdv 0brppp@ <4!d!d` 0bb<4dddd` 0bbg4CdCdv 0bp@ pp<4BdBd` 0bbf^___PPT9@8  ? %;Network ProgrammingLHow do Server, Client, and Display applications communicate with each other?<>Network Programming in RESOLVE/C++Unidirectional channels: one application sends, the other receives Two channels are needed for bi-directional communication (underlying TCP communication links are bi-directional, but RCPP API makes them unidirectional)>Identifying the ReceiverIP address and port number IP address uniquely determines the computer (e.g., 164.107.112.14). We use the host name (e.g., beta.cis.ohio-state.edu) Port number is an integer to distinguish connections and services (e.g., ftp uses 21, BugsWorld Server uses 7277)&=Connection ProtocoljEach receiver application advertises its host name and port number, and  listens for other applications that want to  connect  Sender application tries to open a connection to  Receiver application using known host name and port number When receiver detects sender s attempt, the connection is established*6?RESOLVE/C++ APISender sends information through Character_OStream Receiver receives information through Character_IStream Seamless integration of network programming in the existing RCPP I/O framework!@Opening a Connection: SenderAOpening a Connection: ReceiverB+Receiver: Finding Host Name and Port NumberC CommunicationOnce the connection is established, the sender writes to the output stream, and the receiver reads from the input stream exactly as they would from any input/output streamD Client-Server ProtocolServer advertises host name and port number, then waits for connection from any client. Client attempts to connect with server using server s host name and port number. Once connection is established, client can send information to server. So client sends its own host name and port number to server. Then it waits for reverse connection. Server, having established the connection, reads the client s host name and port number, and initiates its own attempt at connecting with the client. Since the client is waiting for the server, the reverse connection is established. Now the server can send information to the client. 8onZZoBB$ ` 33PP` 3333` ___MMM` 13` 333fpKNāvI` j@v۩ῑ΂H` Q_{>?" dd@(?n<d@ `7 `2@`7``2 n?" ddH@ f @`PR    @ ` ` p>> N F   (     <J" @   Td" @   <"U_ @   T$d">& @   ND "P @   <%"{ @   C x`G?d?"mU @   6G "` G T Click to edit Master title style! !$  0G " " G RClick to edit Master text styles Second level Third level Fourth level Fifth level!     S  6G "@ G \*  6G "@`  G ^*  6@G "` G ^*B  s *޽h ? 13 Default Designs   #  @ (  T +  "+bb P@ # "Dwoh  s *"PP  Bd" P@bb P 0  # "Nyh  s *"P    Bd"P 0 z   <" a*h   s *"    f?d?"+)   <pG ?"pP G T Click to edit Master title style! !   0 G " `   G W#Click to edit Master subtitle style$ $  6G "`p  G `*  6$G ??  8Client   `gG ?? $  8Client  T4kG ?"H C7 h  9Display  T|nG ?" ,   9DisplayH  0޽h ?_     13  p$(  r  S E `  E r  S E  " E H  0޽h ? 13  $(  r  S E `  E r  S  E  " E H  0޽h ? 13  $(  r  S E `  E r  S E  " E H  0޽h ? 13  $(  r  S +G `  G r  S ;a1- $;a > F;i.- $;i F N;q)- $;q N V;y#- $;y V ^;- $; ^ f;a- $; f n;< - $; n v;- $; v |; $; | |;&&& "- & $ Y |:|:Y&w8b&-&& &&-&&};Y &&2- $;Y 6 >;a1- $;a > F;i.- $;i F N;q)- $;q N V;y#- $;y V ^;- $; ^ f;a- $; f n;< - $; n v;- $; v |; $; | |;&- --&& --- !X3@--- &%ux&--- $%u1u1x%x $1u=u=x1x $=uIuIx=x- $IuUuUxIx $UububxUx- $bununxbx $nuzuzxnx- $zuuxzx $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $u u xx- $ uux x- $u$u$xx- $$u0u0x$x- $0u<u<x0x- $<uHuHx<x- $HuTuTxHx- $Tu`u`xTx- $`ululx`x- $luxuxxlx- $xuuxxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $uuxx- $u u xx- $ uux x- $u"u"xx- $"u.u.x"x- $.u:u:x.x- $:uGuGx:x- $GuSuSxGx $Su_u_xSx- $_ukukx_x- $kuwuwxkx $wuuxwx- $uuxx $uuxx $uuxx- $uuxx $uuxx $uuxx- $uuxx---&& &L;& &;& --ta-- @BComic Sans MS- .$2 dgNetwork Programming" !! .--c-- @Wingdings0- . 2 jn.@BComic Sans MS- .<2 #How do Server, Client, and Display          . .<2 #applications communicate with each         . .2 other?.- "-'---&% "--,$ !! --&- "-Mg--- "-%--- "-4&--&W9 "--,$YZ\_b-03455b4_3\0Z-Y--&&1V-- $MO97 $ITT $>43--&&W%wV-- $pMqL^.]/ $iMtTsF $e.Z([5--&&5ahy-- $\j\h@o@q $\offYd $Ak8tDv--&&Pww-- $VWqp $TR^ $stzi--&&w-- $|~ $ ${z--&--!/-- @BComic Sans MS- .2 7Client .--zRb--  .2 oiServer .---#--  .2 #Client .--}(--  .2 /Client .--<_--  .2 {Display  .--'--  .2 Display  .-- "System-&TNPP &Root EntrydO)=deGCurrent UserGSummaryInformation(0&PowerPoint Document({  !"#$%&'()*+,-./P123456789:;<=>?@ABCV_QRSTUWXYZ[\]^ %_{ <Wayne D. HeymWayne D. Heym ՜.+,0$    $ On-screen ShowThe Ohio State Universityt{@  Times New RomanComic Sans MRoot EntrydO)ЬY^wKCurrent User/SummaryInformation(0&PowerPoint Document({  !"#$%&'()*+,-./P123456789:;<=>?@ABCV_QRSTUWXYZ[\]^ _{lohselohsen_tsD. Heym ՜.+,0$    $ On-screen ShowThe Ohio State Universityt{@  Times New RomanComic Sans MRoot EntrydO)`}aOCurrent UserASummaryInformation(0&PowerPoint Document({  !"#$%&'()*+,-./P123456789:;<=>?@ABCV_QRSTUWXYZ[\]^ #_{ Paolo BucciPaolo Bucci ՜.+,0$    $ On-screen ShowThe Ohio State Universityt{@  Times New RomanComic Sans M00DTimes New Roman@'bbv 0b( 0DComic Sans MSn@'bbv 0b( 0B DTahomaans MSn@'bbv 0b( 0"0DWingdings MSn@'bbv 0b( 0c.  @n?" dd@  @@`` X(J^  7.-O." bR$' 7   c $0e0e     A@  A8c 8c8c     ?1 d0u0@Ty2 NP'p<'pA)BCD|ES"@8Luʚ;i')ʚ; g4XdXdv 0brppp@ <4!d!d` 0b,(b<4dddd` 0b,(bg4CdCdv 0bp@ pp<4BdBd` 0b,(bZR___PPT94, ? %;Network ProgrammingLHow do Server, Client, and Display applications communicate with each other?<>Network Programming in RESOLVE/C++Unidirectional channels: one application sends, the other receives Two channels are neDocumentSummaryInformation8Teded for bi-directional communication (underlying TCP communication links are bi-directional, but RCPP API makes them unidirectional)>Identifying the ReceiverIP address and port number IP address uniquely determines the computer (e.g., 164.107.112.14). We use the host name (e.g., beta.cis.ohio-state.edu) Port number is an integer to distinguish connections and services (e.g., ftp uses 21, BugsWorld Server uses 7277)&=Connection ProtocoljEach receiver application advertises its host name and port number, and  listens for other applications that want to  connect  Sender application tries to open a connection to  Receiver application using known host name and port number When receiver detects sender s attempt, the connection is established*6?RESOLVE/C++ APISender sends information through Character_OStream Receiver receives information through Character_IStream Seamless integration of network programming in the existing RCPP I/O framework!@Opening a Connection: SenderAOpening a Connection: ReceiverB+Receiver: Finding Host Name and Port NumberC CommunicationOnce the connection is established, the sender writes to the output stream, and the receiver reads from the input stream exactly as they would from any input/output streamD Client-Server ProtocolServer advertises host name and port number, then waits for connection from any client. Client attempts to connect with server using server s host name and port number. Once connection is established, client can send information to server. So client sends its own host name and port number to server. Then it waits for reverse connection. Server, having established the connection, reads the client s host name and port number, and initiates its own attempt at connecting with the client. Since the client is waiting for the server, the reverse connection is established. Now the server can send information to the client."ondoB   B(   r   S  `      S   "  **"JH   0޽h ? 13r_Dmy  _w{DSTahoma WingdingsDefault DesignNetwork Programming?Network Programming in RESOLVE/C++Identifying the ReceiverConnection ProtocolRESOLVE/C++ APIOpening a Connection: SenderOpening a Connection: Receiver,Receiver: Finding Host Name and Port NumberCommunicationClient-Server Protocol  Fonts UsedDesign Template Slide Titles