[ee122] How should the program behave when user inputs Ctrl_D?

Linda Sha lindablus at berkeley.edu
Sat Sep 22 17:49:18 PDT 2007

I have trouble using cin to capture the "EOT"/Ctrl_D character. My program
client program stopped running after I input Ctl-D + ENTER, but it won't get
back to the command line either (unless I press ctrl_c). How should we deal
with this character?

For Ctrl_C, is it ok to let the program terminate without closing the socket

Thanks a lot!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/ee122/attachments/20070922/562ddc78/attachment.html 

More information about the ee122 mailing list