recv
Problem with recv() on a tcp connection
I am simulating TCP communication on windows in C. I havesender and a receiver communicating. The sender sends packets of specific 开发者_运维百科size to the receiver. The receiver gets them and send[详细]
2023-02-14 22:43 分类:问答Problem: recvmsg(pfd[0], &message, MSG_WAITALL) always returns -1 instead of being blocked?
I\'m making a server which spawn a child upon connection (using fork), and use pipe to send another socket to this child when there is another connection comming in. The idea is to let the child proce[详细]
2023-02-14 06:39 分类:问答Does recv remove packets from pcaps buffer?
Say there are two programs running on a computer (for the sake of simplification, the only user programs running on linu开发者_如何学Cx) one of which calls recv(), and one of which is using pcap to de[详细]
2023-02-13 19:02 分类:问答HTTP keep-alive with C++ recv winsocket2
I\'m Coding my own HTTP fetcher socket. I use C++ in MVC++ and winsocket2.h I was able to program the socket to connect to the required website\'s serverand send an HTTP GET request.[详细]
2023-02-08 23:22 分类:问答epoll_wait() receives socket closed twice (read()/recv() returns 0)
We have an application that uses epoll to listen and process http-connections. Sometimes epoll_wait() receives close event on fd twice in a \"row\". Meaning: epoll_wait() returns connection fd on whic[详细]
2023-02-05 20:30 分类:问答recv receiving not whole data sometime
I have following issue: here is the chunk of code: void get_all_buf(int sock, std::string & inStr) {[详细]
2023-01-31 23:56 分类:问答Handling multiple recv() calls and all possible scenarios
I am fairly new to C and writing a TCP server, and was wondering how to handle recv()s from a client who will send commands that the server will respond to. For the sake of this question, let\'s just[详细]
2023-01-28 05:16 分类:问答recvfrom infinite receiving problem
I m writing a server using udp socket. After a client send first message to connect, i open new socket to communicate with this client on this socket (first sockets for listening) and create a thread[详细]
2023-01-26 03:03 分类:问答Using UDP sockets to receive data
I am writing an application and I don\'t understand a point. I am trying to receive data from a specific client. In a TCP socket, accept returns to you an fd number, so you can communicate over this f[详细]
2023-01-25 20:48 分类:问答Sending multiple messages via send() recv(), Socket programming, C
I\'m trying to make a program (client) which kan send a message to a server upon request from user. Stripped down code follows:[详细]
2023-01-24 17:43 分类:问答