 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
MuZZy Guest
|
Posted: Mon Dec 15, 2003 5:40 am Post subject: TServerSocket - use with blocking and with non-blocking |
|
|
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
|
Posted: Tue Dec 16, 2003 3:31 am Post subject: Re: TServerSocket - use with blocking and with non-blocking |
|
|
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 |
|
 |
|
|
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
|
|