select-function Questions
5
Solved
I'm trying to make a server that can be connected to by multiple clients. Here's my code so far:
Client:
int main(int argc, char **argv) {
struct sockaddr_in servaddr;
int sock = socket(AF_INE...
Biometry asked 16/11, 2010 at 23:41
3
Solved
I am trying to use select() to read keyboard input and I got stuck in that I do not know how to read from keyboard and use a file descriptor to do so. I've been told to use STDIN and STDIN_FILENO t...
Gid asked 20/6, 2011 at 22:17
2
I have got signaled socket for read from select(), but then no data arrived by recv call(), instead it returns -1 with errno==EAGAIN.
I can grant that no other thread touch the socket.
I think t...
Parenthood asked 24/11, 2011 at 11:55
1
© 2022 - 2024 — McMap. All rights reserved.