31 #ifndef IMGSOCK_MANAGER_H_
32 # define IMGSOCK_MANAGER_H_
38 #define NUM_OF_MSGTYPES 9
73 unsigned int width,
unsigned int height,
unsigned int numofcomp,
Byte_t maxval);
113 unsigned int height);
void send_SIZstream(SOCKET connected_socket, unsigned int width, unsigned int height)
send SIZ data stream to the client
Definition: imgsock_manager.c:196
uint8_t Byte_t
Definition: byte_manager.h:37
void send_XMLstream(SOCKET connected_socket, Byte_t *xmlstream, OPJ_SIZE_T length)
send XML data stream to the client
Definition: imgsock_manager.c:134
void send_CIDstream(SOCKET connected_socket, const char *cid, OPJ_SIZE_T cidlen)
send CID data stream to the client
Definition: imgsock_manager.c:152
Definition: imgsock_manager.h:39
int OPJ_BOOL
Definition: openjpeg.h:110
Byte_t * receive_JPIPstream(SOCKET connected_socket, char **target, char **tid, char **cid, OPJ_SIZE_T *streamlen)
receive a JPT- JPP- stream from client
Definition: imgsock_manager.c:67
size_t OPJ_SIZE_T
Definition: openjpeg.h:133
int SOCKET
Definition: sock_manager.h:40
eMSGTYPE
Definition: imgsock_manager.h:39
msgtype_t identify_clientmsg(SOCKET connected_socket)
indeitify client message type
Definition: imgsock_manager.c:39
Definition: imgsock_manager.h:39
Definition: imgsock_manager.h:39
Definition: imgsock_manager.h:39
void response_signal(SOCKET connected_socket, OPJ_BOOL succeed)
send response signal to the client
Definition: imgsock_manager.c:214
Definition: imgsock_manager.h:39
Definition: imgsock_manager.h:39
Definition: imgsock_manager.h:39
void send_TIDstream(SOCKET connected_socket, const char *tid, OPJ_SIZE_T tidlen)
send TID data stream to the client
Definition: imgsock_manager.c:157
void send_PNMstream(SOCKET connected_socket, Byte_t *pnmstream, unsigned int width, unsigned int height, unsigned int numofcomp, Byte_t maxval)
send PGM/PPM image stream to the client
Definition: imgsock_manager.c:176
Definition: imgsock_manager.h:39
Definition: imgsock_manager.h:39
Definition: imgsock_manager.h:39