BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TServerSocket - use with blocking and with non-blocking

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
MuZZy
Guest





PostPosted: Mon Dec 15, 2003 5:40 am    Post subject: TServerSocket - use with blocking and with non-blocking Reply with quote



Hi,

I just dove into "Sockets" and for beginning need to implement a simple
Client-server app where they talk thru sockets.

Basicly cliend requests some info thru predefined messages and server
replies with a result.

Here i got a problem - i can't figure out how it works, or better to say
NOT WORK, particularly:

Say, i set ServerSocket in blocking mode, set ClientSocket in blocking
mode and i try to send some data from server to client thru
TWinSocketStream. Client reads TWinSocketStream BUT... receives only
8192 bytes maximum(i send approx. 60 kb).

I can assume that it's the length of one tcp packet, but why only one? I
set blocking so it should mean i will send/receive everything before
anything else would occure...


Can some one explain me breathly what could be the problem and/or how it
works?

Any IDEAS or COMMENTS would be HIGHLY APPRECIATED!!! 'cause i've already
spent couple nights in a row trying to figure it out :(

Thank you in advance,
Andrey

Back to top
Muzzy
Guest





PostPosted: Tue Dec 16, 2003 3:31 am    Post subject: Re: TServerSocket - use with blocking and with non-blocking Reply with quote



Jon Tveten wrote:
Quote:
In article <3fdd4939$1 (AT) newsgroups (DOT) borland.com>, [email]leyandrew (AT) yahoo (DOT) com[/email]
says...

Hi,

I just dove into "Sockets" and for beginning need to implement a simple
Client-server app where they talk thru sockets.

Basicly cliend requests some info thru predefined messages and server
replies with a result.

Here i got a problem - i can't figure out how it works, or better to say
NOT WORK, particularly:

Say, i set ServerSocket in blocking mode, set ClientSocket in blocking
mode and i try to send some data from server to client thru
TWinSocketStream. Client reads TWinSocketStream BUT... receives only
8192 bytes maximum(i send approx. 60 kb).

I can assume that it's the length of one tcp packet, but why only one? I
set blocking so it should mean i will send/receive everything before
anything else would occure...


Can some one explain me breathly what could be the problem and/or how it
works?

Any IDEAS or COMMENTS would be HIGHLY APPRECIATED!!! 'cause i've already
spent couple nights in a row trying to figure it out :(


Hi Andrey,

Take a look at http://www.tangentsoft.net/wskfaq/

Thank you, i will have a look :)


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.