<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="font-family: 'Segoe UI',Frutiger,'Frutiger Linotype','Dejavu Sans','Helvetica Neue',Arial,sans-serif; font-size: 14px;">
<div class="hiri-body-wrapper">
<div>I'm trying to implement a custom output port (to represent a socket) and having a bit of trouble. I've tried using open_output_function, but I can't see how to pass any context with the function (so I know which file descriptor to write to). I've also
tried creating a c_object and adding "output-port?" and "write" methods, but some stuff (format specifically) won't work unless the "is-output-port" macro in s7.c returns true.<br>
<br>
Should I patch s7 with an "s7_open_output_fd" function? is there a better way to do this?<br>
<br>
Sorry to spam this list, thanks for all of your help,<br>
Woody Douglass</div>
</div>
</body>
</html>