Article View: borland.public.cppbuilder.internet.socket
Article #4531Blocking Client
From: mike
Date: Thu, 20 Jan 2005 20:03
Date: Thu, 20 Jan 2005 20:03
22 lines
1688 bytes
1688 bytes
I have been trying to figure out how to properly write a blocking client application and have some basic questions. 1- Is there an example around that I could study to see how this is done. 2- From what I have read I seem to understand the following, but I am not sure if I am correct or not. - Set the Client Socket to Blocking. - Once I have established a connect to the server, create my own thread that will do my reading of any data being received. I do this using the WinSocketStream and the method WaitForData() - from this thread then process the message. 3- For writing to the socket, do I need to have a separate thread. I am a little confused on how to put all this together so if someone has a sample or could help me lay it out it sure would help. Thanks for any information Mike
Technical Details
Message-ID:
<41f00ec6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8975bc0a9ed70a81,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "mike" <mfbrowne@earthlink.net> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Blocking Client Date: Thu, 20 Jan 2005 15:03:54 -0500 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 68.204.189.169 Message-ID: <41f00ec6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106251462 68.204.189.169 (20 Jan 2005 12:04:22 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail