file-descriptor
Python persistent socket connection
I\'m new to python :) I would like to create persistent socket. I tried to do this using file descriptors. What I tried is:[详细]
2023-01-16 14:29 分类:问答How to prevent stdin stream from reading data from associated file descriptor on program start?
I\'m using select() call to detect input presence in the main cycle of my program. This makes me use raw file descriptor (0) instead of stdin.[详细]
2023-01-15 16:57 分类:问答How can DIR* get EBADF error?
I have some code that I have inherited which is part of a class for iterating, accessing the directory content and uses boost::filesystem::path.The code reads in part:[详细]
2023-01-15 06:41 分类:问答Determining whether a readable file descriptor is the read end of a pipe
I would like to use splice to zero-copy data from STDIN_FILENO to a file descriptor (which could be to a regular file, char or block device, FIFO, or anything that can be opened with open). In order t[详细]
2023-01-15 06:31 分类:问答Problem in code with File Descriptors. C (Linux)
I\'ve written code that should ideally take in data from one document, encrypt it and save it in another document.[详细]
2023-01-15 02:27 分类:问答Why does the following code raise a SegFault. c(Linux)
This a code that would reverse the data of a document and s开发者_如何转开发ave it in the same document itself.[详细]
2023-01-14 18:09 分类:问答How do I create a memory-mapped file without a backing file on OSX?
I want to use a library that uses file descriptors as the basic means to access its data. For performance reasons, I don\'t want to have to commit files to the disk each before I use this library\'s f[详细]
2023-01-14 15:00 分类:问答How do I use FileDescriptor with HTTP URLs
I was hoping this was going to work for getting Android\'s MediaPlayer to stream from a URL using authentication, but now I\'m not so sure. I have no problem getting it to stream from an open server ([详细]
2023-01-13 20:45 分类:问答State of preexisting connections when using file descriptor passing?
I\'m playing around with a webserver, using a unix socket and sendmsg / recvmsg to pass the socket file descriptor to a new server process without losing any requests. While testing it with ab I found[详细]
2023-01-12 06:54 分类:问答specifying file descriptor number?
My understanding was t开发者_运维问答hat one could not control the file descriptor (integer) assigned by the OS when opening a new file using open().How then is it possible in a bash shell to assign a[详细]
2023-01-10 18:16 分类:问答