Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
recv
- Page 1
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
… from {addr} has been established!") while True: command = conn.
recv
(1024).decode('utf-8') if command.lower() == 'exit': break elif…
Recv
Programming
Software Development
16 Years Ago
by TheBeast32
…; if (sock == INVALID_SOCKET) return false; while (BytesRecv < size) { BytesRecvTemp =
recv
(sock, data, size - BytesRecv, NULL); if (BytesRecvTemp > 0) { BytesRecv…
Re: Recv
Programming
Software Development
16 Years Ago
by TheBeast32
After messing with the program for a while, I found that
recv
will return 0 if it's done. Is this correct?
recv error and synchronization problems
Programming
Software Development
18 Years Ago
by Frohdoh
…. Everything works fine beside: [code] status =
recv
( m_clsocket, ([COLOR=#0000FF][COLOR=#0000FF]char[/COLOR][/COLOR…status != WSAEWOULDBLOCK) { Console.ErrorMsg([COLOR=#800080]"
recv
failed: reason %d"[/COLOR], status); CloseClient(); …
Recv()ing a long message
Programming
Software Development
18 Years Ago
by Savs
… server not using non-blocking sockets? The problem is that
recv
blocks if server stops to send. [CODE]while(true){… n=
recv
(skt, buf, BUFFER_SIZE,0); if(n<=0)break; …; }[/CODE] So, how to break from while(true) before
recv
() blocks? My experiments with select() failed. =(
Re: Recv()ing a long message
Programming
Software Development
18 Years Ago
by Savs
found a simple solvation. [B]man
recv
[/B] really helped me out =) so, in simple case…-blocking sockets and select(). There is a way to tell
recv
() not to block by using MSG_DONTWAIT value. [CODE]while…((n=
recv
(skt, buf, BUFFER_SIZE, MSG_DONTWAIT))>0){ buf[n]='\0';…
Re: Recv()ing a long message
Programming
Software Development
18 Years Ago
by Savs
…, NULL, NULL, 0); if(!FD_ISSET(skt, &fd_cnt))break; n=
recv
(skt, buf, BUFFER_SIZE,0); if(n<=0)break; buf…
Re: recv:bad address error
Programming
Software Development
15 Years Ago
by karthik.c
…;1069812]did you try: [CODE]int i=0; int ch=
recv
(new_socket,(void*)&i,sizeof(int),0); printf("Value… wrong in my approach of receiving the datas in the
recv
(),as i declare one void pointer and typecast it to… value is passed from client's send() to server's
recv
(). thanx !!
recv:bad address error
Programming
Software Development
15 Years Ago
by karthik.c
hi, im getting
recv
:bad address error in the server code when im receiving …); [/code] server: [code=c++] void *ptr; int *iptr; int ch=
recv
(new_socket,ptr,sizeof(int),0); iptr = (int*)(ptr); printf("…
Re: recv:bad address error
Programming
Software Development
15 Years Ago
by programmersbook
did you try: [CODE]int i=0; int ch=
recv
(new_socket,(void*)&i,sizeof(int),0); printf("Value of a is :%d\n", i);[/CODE]
recv function doesn't work in c
Programming
Software Development
12 Years Ago
by fafa70
…");} //puts("\ndata has been sent."); if((SizeOfText=
recv
(sock,buffer2,1000,O_NONBLOCK)) < 0) { write(2,"\nerror…
Re: Recv
Programming
Software Development
16 Years Ago
by Salem
Sounds about right.
how to solve this problem with socket recv()?
Programming
Software Development
15 Years Ago
by sophie.c
…it? Below is my code snippet. [CODE] ...... bytesRecv =
recv
(recv_socket, recv_buff, 1000, 0); if(bytesRecv == SOCKET_ERROR) printf… above code, but it shows that: [CODE]RECVBIG
recv
() OK - Bytes received: 260.[/CODE] ,and in… client and server use the same
recv
() code snippet, but all
recv
() calls at the server's side…
mpiCC send recv array c++
Programming
Software Development
15 Years Ago
by nahmartin
…=1; rj<size; rj++) { MPI::COMM_WORLD.
Recv
(&itr_atoms, 1, MPI::INT, rj, 100000+rj…rj=1; rj<size; rj++) { MPI::COMM_WORLD.
Recv
(N_List, len_N_List*100, MPI::INT, rj, 500000+rj);…((rj+1)*1000000)+rk); cout << "
Recv
2\n"; }[/CODE] [SOLI37468C:20550] Signal: …
Re: how to solve this problem with socket recv()?
Programming
Software Development
15 Years Ago
by david.k
… data: [code=cpp] int size_to_recv = 100; while(size_to_recv) { int r =
recv
(sock, buf, size_to_recv, 0); if(r <= 0) break; //socket…. Just don't forget to check the return value of
recv
() function.
Re: Network Programming - send/recv and Timeout Query
Programming
Software Development
16 Years Ago
by vicky_dev
…call. You will have to loop it. Since
recv
() returns the number of bytes received, what … and thats what I want to read in
recv
(8 bytes)! I was wondering if its …;755660]2. If the client has called
recv
() and the server closes the socket, the client…is closed by the other end (using closesocket),
recv
returns 0 (indicating a graceful shutdown). I guess…
Network Programming - send/recv and Timeout Query
Programming
Software Development
16 Years Ago
by vicky_dev
… that I will ALWAYS get 8 bytes in a single
recv
at client(assuming that I specify 8 bytes as my… buffer size in
recv
)? The question is, is it possible (probably due to network… conditions) that the client
recv
's 3 (or somethin else <8) bytes only first…
Re: mpiCC send recv array c++
Programming
Software Development
15 Years Ago
by nahmartin
… wrong I can send 1 dimensional arrays through send and
recv
successfully (receiving the same information i send) How can you…
Re: Network Programming - send/recv and Timeout Query
Programming
Software Development
16 Years Ago
by mahlerfive
… in one call. You will have to loop it. Since
recv
() returns the number of bytes received, what you can do… or receive a message. 2. If the client has called
recv
() and the server closes the socket, the client's…
recv
() will return -1 signifying this. If the server closes the …
SOCKET recv() method not removes
Programming
Software Development
17 Years Ago
by MadeInHungary
I like to receive data on SOCKET. I call the
recv
() method with required params: char* buff = new char…[len]; memset(buff, 0, len); if(
recv
(sck, buff, len, MSG_PEEK) == SOCKET_ERROR) { cerr <<…: " << WSAGetLastError() << endl; } The
recv
() method copies data to the buff. That's right. But…
Re: SOCKET recv() method not removes
Programming
Software Development
17 Years Ago
by MadeInHungary
…is the length and not the string, Because
recv
() method don't remove the length from …receiveInteger(SOCKET sck) { int ret; u_long par = 0; if(
recv
(sck, (char*)&par, sizeof(u_long), 0) == SOCKET_ERROR) …, 0, len); //if((wrkI =
recv
(sck, buff, len, MSG_PEEK)) == SOCKET_ERROR) { if((wrkI =
recv
(sck, buff, len-1, 0)) …
Re: SOCKET recv() method not removes
Programming
Software Development
17 Years Ago
by MadeInHungary
…::receiveInteger(SOCKET sck) { int ret; u_long par = 0; if(
recv
(sck, (char*)&par, sizeof(u_long), 0) == SOCKET_ERROR) {…buff, 0, len); //if((wrkI =
recv
(sck, buff, len, MSG_PEEK)) == SOCKET_ERROR) { if((wrkI =
recv
(sck, buff, len-1, 0)) == … is the length and not the string, Because
recv
() method don't remove the length from socket …
Winsock dynamic recv handler
Programming
Software Development
14 Years Ago
by kerp
…TCP. Now I want to write a dynamic
recv
handler and by that I mean a function … this, what if there are more bytes to
recv
than current maximum? My attempt at a solution … beginning of the data returned by the next
recv
call which I know should contain the rest … beginning of the data returned by the next
Recv
call but I've not gotten any valid …
Re: SOCKET recv() method not removes
Programming
Software Development
17 Years Ago
by Salem
… other problem is, having filled your buffer with \0, if
recv
() also fills the buffer with data, then there will be…++] char* buff = new char[len]; memset(buff, 0, len); if(
recv
(sck, buff, len, MSG_PEEK) == SOCKET_ERROR) { cerr << "String…
Print dots while socket.recv() waits
Programming
Software Development
16 Years Ago
by tzushky
… without an answer #print #while len(resp)==0: # resp = tcpCliSock.
recv
(BUFSIZE) # print '.' # time.sleep(1) #print resp = tcpCliSock….
recv
(BUFSIZE) print 'I've received:',
recv
[/CODE] I've tried the socket setdefaulttimeout(), but…
Socket Programming RECV call is blocked
Programming
Software Development
15 Years Ago
by adi.shoukat
…("File Size in int: %d \n",size); byte_count =
recv
(sock,recv_data, 1024,0); recv_data[byte_count] = '\0'; printf("hhahaha… Side but when i receive it on client side the
recv
call is blocked the code how m i sending data…(fp); [/CODE] Please tell me why does it block on
recv
call its urgent ... :(
"Bad value for ai_flags" from recv()
Programming
Software Development
14 Years Ago
by bleedi
…and send the HTTP request, but then the
recv
() function returns -1, and errno tells …Hoh: %s", msg); char *recv_msg; int recv_bytes =
recv
(s, recv_msg, 4096, 0); if(recv_bytes == -1) {…", gai_strerror(recv_bytes)); return 0; } printf("
Recv
. bytes: %d\n\n", recv_bytes); freeaddrinfo(…
Re: SOCKET recv() method not removes
Programming
Software Development
17 Years Ago
by MadeInHungary
Thanx for quite advise, but the problem don't solved. That is calling of
recv
(sck, buff, len, 0); method read data from socket into buff but don't remove that from socket. BR MadeInHungary
about recv() Windows Socket
Programming
Software Development
19 Years Ago
by yuzhang
Hi all: According to the library,
recv
() will return a zero if the socket is closed, and a SOCKET_ERROR if the socket meets an error. But when I closed my socket (at least I think I closed it properly),
recv
() returned a SOCKET_ERROR other than zero. Wondering why? Thank you whoever help me in advance.
Re: about recv() Windows Socket
Programming
Software Development
19 Years Ago
by WolfPack
[QUOTE=yuzhang]Hi all: According to the library,
recv
() will return a zero if the socket is closed, and … my socket (at least I think I closed it properly),
recv
() returned a SOCKET_ERROR other than zero. Wondering why? Thank you…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC