difference between RSocket Write / Send ans Read / Recv

Login to reply to this topic.
Sat, 2003-09-20 13:40
Joined: 2003-08-27
Forum posts: 21
Hi,

I ve got a problem with those functions,
I created a connection between two TCP sockets

One of those two sockets was created with the Accept method (not the listenig socket but the client socket created with Accept on the server side), when I tried to use the Write or Read methods on this socket, it works, whereas Send and Recv return KErrAccessDenied.

At the client side, the four methods work.

So, is there something to do so that Write and Read functions work with my socket ( Server side ) or is it impossible ?

In fact I don't know how tu use the Read function since it returns when the full amount of requested data has been received, and generally, I don't know the size of data that will be read, it's why I would like to use Recv function.

So, someone has an idea ?

Hil

Sat, 2003-09-20 20:44
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2029
difference between RSocket Write / Send ans Read / Recv
Did you try RecvOneOrMore() ?
This is probably the best choice if you don't knwo the amunt of data you may get.

Cheers,
Eric

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Sun, 2003-09-21 07:46
Joined: 2003-08-27
Forum posts: 21
difference between RSocket Write / Send ans Read / Recv
Yes, in fact, I tried with all functions begining with Recv, each one returns KErrAccessDenied on the socket on the server side, only the Read() function seems to work, but it is blocking because I don't know the size to read.

Hil
Mon, 2003-09-22 17:59
Joined: 2003-08-27
Forum posts: 21
difference between RSocket Write / Send ans Read / Recv
After many tests, I finaly find where is the problem, it looks to be impossible to read data in a socket created with the RSocket::Accept() method !!!

So, does someone has ever success doing a read on the server side ?
Thu, 2005-08-04 12:26
Joined: 2005-08-04
Forum posts: 11
Re: difference between RSocket Write / Send ans Read / Recv
I have basic doubt, how to have client-server connectivty between two emulator running in compltely different m/c. I mean what will be the ip address of the server. What RConnection I have to use?
  • Login to reply to this topic.