Lines Matching full:control
51 uint32_t* control; in fstrm_create_control_frame_start() local
54 * 4byte 0: control indicator. in fstrm_create_control_frame_start()
55 * 4byte bigendian: length of control frame in fstrm_create_control_frame_start()
62 control = malloc(n); in fstrm_create_control_frame_start()
63 if(!control) in fstrm_create_control_frame_start()
65 control[0] = 0; in fstrm_create_control_frame_start()
66 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_start()
67 control[2] = htonl(FSTRM_CONTROL_FRAME_START); in fstrm_create_control_frame_start()
68 control[3] = htonl(FSTRM_CONTROL_FIELD_TYPE_CONTENT_TYPE); in fstrm_create_control_frame_start()
69 control[4] = htonl(strlen(contenttype)); in fstrm_create_control_frame_start()
70 memmove(&control[5], contenttype, strlen(contenttype)); in fstrm_create_control_frame_start()
72 return control; in fstrm_create_control_frame_start()
77 uint32_t* control; in fstrm_create_control_frame_stop() local
80 * 4byte 0: control indicator. in fstrm_create_control_frame_stop()
81 * 4byte bigendian: length of control frame in fstrm_create_control_frame_stop()
85 control = malloc(n); in fstrm_create_control_frame_stop()
86 if(!control) in fstrm_create_control_frame_stop()
88 control[0] = 0; in fstrm_create_control_frame_stop()
89 control[1] = htonl(4); in fstrm_create_control_frame_stop()
90 control[2] = htonl(FSTRM_CONTROL_FRAME_STOP); in fstrm_create_control_frame_stop()
92 return control; in fstrm_create_control_frame_stop()
97 uint32_t* control; in fstrm_create_control_frame_ready() local
109 control = malloc(n); in fstrm_create_control_frame_ready()
110 if(!control) { in fstrm_create_control_frame_ready()
113 control[0] = 0; in fstrm_create_control_frame_ready()
114 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_ready()
115 control[2] = htonl(FSTRM_CONTROL_FRAME_READY); in fstrm_create_control_frame_ready()
116 control[3] = htonl(FSTRM_CONTROL_FIELD_TYPE_CONTENT_TYPE); in fstrm_create_control_frame_ready()
117 control[4] = htonl(strlen(contenttype)); in fstrm_create_control_frame_ready()
118 memmove(&control[5], contenttype, strlen(contenttype)); in fstrm_create_control_frame_ready()
120 return control; in fstrm_create_control_frame_ready()
125 uint32_t* control; in fstrm_create_control_frame_accept() local
127 /* control frame on reply: in fstrm_create_control_frame_accept()
137 control = malloc(n); in fstrm_create_control_frame_accept()
138 if(!control) { in fstrm_create_control_frame_accept()
141 control[0] = 0; in fstrm_create_control_frame_accept()
142 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_accept()
143 control[2] = htonl(FSTRM_CONTROL_FRAME_ACCEPT); in fstrm_create_control_frame_accept()
144 control[3] = htonl(FSTRM_CONTROL_FIELD_TYPE_CONTENT_TYPE); in fstrm_create_control_frame_accept()
145 control[4] = htonl(strlen(contenttype)); in fstrm_create_control_frame_accept()
146 memmove(&control[5], contenttype, strlen(contenttype)); in fstrm_create_control_frame_accept()
148 return control; in fstrm_create_control_frame_accept()
153 uint32_t* control; in fstrm_create_control_frame_finish() local
155 /* control frame on reply: in fstrm_create_control_frame_finish()
162 control = malloc(n); in fstrm_create_control_frame_finish()
163 if(!control) { in fstrm_create_control_frame_finish()
166 control[0] = 0; in fstrm_create_control_frame_finish()
167 control[1] = htonl(4); in fstrm_create_control_frame_finish()
168 control[2] = htonl(FSTRM_CONTROL_FRAME_FINISH); in fstrm_create_control_frame_finish()
170 return control; in fstrm_create_control_frame_finish()
183 snprintf(buf, sizeof(buf), "malformed control frame, " in fstrm_describe_control()