1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef SOCKETSTREAM_H #define SOCKETSTREAM_H #include "stream.h" typedef struct SocketStream SocketStream; struct SocketStream { Stream base; int sock; }; int SocketStreamOpen(SocketStream *stream, int sock); #endif