Opening a stream on file with given file descriptor

JV
Jan Vraný
Thu, Jul 20, 2023 7:20 AM

Hi,

I'm struggling to find a way how to create a read/write stream 
for given file descriptor (in Pharo 8 ideally). Is there a way?

Thanks! Jan

Hi, I'm struggling to find a way how to create a read/write stream  for given file descriptor (in Pharo 8 ideally). Is there a way? Thanks! Jan
MR
Miloslav.Raus@cuzk.cz
Fri, Jul 21, 2023 11:56 AM

Perhaps

File >> connectToFileDescriptor: fileDescriptor writable: writableFlag

followed by read/writeStream ?

Not tested, just did a few searches in P8 image.


From: Jan Vraný Jan.Vrany@labware.com
Sent: Thursday, July 20, 2023 9:20:46 AM
To: pharo-dev@lists.pharo.org; marianopeck@gmail.com
Subject: [Pharo-dev] Opening a stream on file with given file descriptor

Hi,

I'm struggling to find a way how to create a read/write stream
for given file descriptor (in Pharo 8 ideally). Is there a way?

Thanks! Jan

Perhaps File >> connectToFileDescriptor: fileDescriptor writable: writableFlag followed by read/writeStream ? Not tested, just did a few searches in P8 image. ________________________________ From: Jan Vraný <Jan.Vrany@labware.com> Sent: Thursday, July 20, 2023 9:20:46 AM To: pharo-dev@lists.pharo.org; marianopeck@gmail.com Subject: [Pharo-dev] Opening a stream on file with given file descriptor Hi, I'm struggling to find a way how to create a read/write stream for given file descriptor (in Pharo 8 ideally). Is there a way? Thanks! Jan
JV
Jan Vraný
Fri, Jul 21, 2023 6:58 PM

On Fri, 2023-07-21 at 11:56 +0000, Miloslav.Raus--- via Pharo-dev wrote:

Perhaps

File >> connectToFileDescriptor: fileDescriptor writable: writableFlag

followed by read/writeStream ?

Ah, I missed this one. Thanks heaps! 

Jan

Not tested, just did a few searches in P8 image.


From: Jan Vraný Jan.Vrany@labware.com
Sent: Thursday, July 20, 2023 9:20:46 AM
To: pharo-dev@lists.pharo.org; marianopeck@gmail.com
Subject: [Pharo-dev] Opening a stream on file with given file descriptor

Hi,

I'm struggling to find a way how to create a read/write stream
for given file descriptor (in Pharo 8 ideally). Is there a way?

Thanks! Jan

On Fri, 2023-07-21 at 11:56 +0000, Miloslav.Raus--- via Pharo-dev wrote: > Perhaps > > File >> connectToFileDescriptor: fileDescriptor writable: writableFlag > > followed by read/writeStream ? Ah, I missed this one. Thanks heaps!  Jan > > > Not tested, just did a few searches in P8 image. > > ________________________________ > From: Jan Vraný <Jan.Vrany@labware.com> > Sent: Thursday, July 20, 2023 9:20:46 AM > To: pharo-dev@lists.pharo.org; marianopeck@gmail.com > Subject: [Pharo-dev] Opening a stream on file with given file descriptor > > Hi, > > I'm struggling to find a way how to create a read/write stream > for given file descriptor (in Pharo 8 ideally). Is there a way? > > Thanks! Jan