This would let me use a struct as an output port:

(struct foo (name out) #:property prop:output-port (struct-field-index out))

I'd like to be able to set up a struct such that I can use it as a UDP
socket, something like the following pseudo-code:

(struct foo (socket) #:property prop:udp (struct-field-index socket))

I see that Racket defines prop:input-port and prop:output-port, but there's
no prop:udp, nor can I figure out how to do it through the structure type
properties or generic interfaces.  (I feel like I'm missing something on
those two, so maybe it's just poor understanding.)

Is there a way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAE8gKoeYqP3TRDHX%3DqLh9GxB6AJ6KF--9g-fVbMQ8c0oFvD_Bw%40mail.gmail.com.

Reply via email to