Go to the documentation of this file.
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);
@ CIDDST
Definition: imgsock_manager.h:39
void send_stream(SOCKET connected_socket, const void *stream, OPJ_SIZE_T length)
send data stream to client
Definition: sock_manager.c:104
@ CIDREQ
Definition: imgsock_manager.h:39
void send_SIZstream(SOCKET connected_socket, unsigned int width, unsigned int height)
send SIZ data stream to the client
Definition: imgsock_manager.c:196
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
@ SIZREQ
Definition: imgsock_manager.h:39
void * receive_stream(SOCKET connected_socket, OPJ_SIZE_T length)
receive data stream to client
Definition: sock_manager.c:120
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
eMSGTYPE
Definition: imgsock_manager.h:39
uint8_t Byte_t
Definition: byte_manager.h:37
void send_IDstream(SOCKET connected_socket, const char *id, OPJ_SIZE_T idlen, const char *label)
Definition: imgsock_manager.c:162
#define NUM_OF_MSGTYPES
Definition: imgsock_manager.h:38
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 response_signal(SOCKET connected_socket, OPJ_BOOL succeed)
send response signal to the client
Definition: imgsock_manager.c:214
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
@ QUIT
Definition: imgsock_manager.h:39
int SOCKET
Definition: sock_manager.h:40
int OPJ_BOOL
Definition: openjpeg.h:116
size_t OPJ_SIZE_T
Definition: openjpeg.h:139
@ JP2SAVE
Definition: imgsock_manager.h:39
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
OPJ_SIZE_T receive_line(SOCKET connected_socket, char *p)
receive a string line (ending with ' ') from client
Definition: sock_manager.c:142
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
#define BUF_LEN
Definition: sock_manager.h:43
@ TIDREQ
Definition: imgsock_manager.h:39
void send_SIZstream(SOCKET connected_socket, unsigned int width, unsigned int height)
send SIZ data stream to the client
Definition: imgsock_manager.c:196
msgtype_t identify_clientmsg(SOCKET connected_socket)
indeitify client message type
Definition: imgsock_manager.c:39
@ XMLREQ
Definition: imgsock_manager.h:39
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
@ PNMREQ
Definition: imgsock_manager.h:39
msgtype_t identify_clientmsg(SOCKET connected_socket)
indeitify client message type
Definition: imgsock_manager.c:39
void response_signal(SOCKET connected_socket, OPJ_BOOL succeed)
send response signal to the client
Definition: imgsock_manager.c:214
@ MSGERROR
Definition: imgsock_manager.h:39
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 send_CIDstream(SOCKET connected_socket, const char *cid, OPJ_SIZE_T cidlen)
send CID data stream to the client
Definition: imgsock_manager.c:152
@ JPIPSTREAM
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