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);
uint8_t Byte_t
Definition byte_manager.h:37
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
void send_SIZstream(SOCKET connected_socket, unsigned int width, unsigned int height)
send SIZ data stream to the client
Definition imgsock_manager.c:196
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
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
eMSGTYPE
Definition imgsock_manager.h:39
@ JPIPSTREAM
Definition imgsock_manager.h:39
@ SIZREQ
Definition imgsock_manager.h:39
@ QUIT
Definition imgsock_manager.h:39
@ PNMREQ
Definition imgsock_manager.h:39
@ CIDDST
Definition imgsock_manager.h:39
@ MSGERROR
Definition imgsock_manager.h:39
@ TIDREQ
Definition imgsock_manager.h:39
@ XMLREQ
Definition imgsock_manager.h:39
@ JP2SAVE
Definition imgsock_manager.h:39
@ CIDREQ
Definition imgsock_manager.h:39
msgtype_t identify_clientmsg(SOCKET connected_socket)
indeitify client message type
Definition imgsock_manager.c: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
void response_signal(SOCKET connected_socket, OPJ_BOOL succeed)
send response signal to the client
Definition imgsock_manager.c:214
size_t OPJ_SIZE_T
Definition openjpeg.h:139
int OPJ_BOOL
Definition openjpeg.h:116
int SOCKET
Definition sock_manager.h:40