Lines Matching refs:INT2
29 void add_int2field(struct transaction * t,INT2 v)
41 add_int2field(t,htons((INT2)(strlen(s)+4)));
47 add_int2field(t,htons((INT2)(c+4)));
51 void add_field_string(struct session *s,struct transaction * t,INT2 fn,char * p)
59 void add_field_data(struct session *s,struct transaction * t,INT2 fn,char * p,int c)
67 void add_field_INT2(struct session *s,struct transaction * t,INT2 fn,INT2 v)
76 void add_field_INT4(struct session *s,struct transaction * t,INT2 fn,INT4 v)
85 void start_transaction(struct transaction * t,INT2 msgtype,INT4 sessionid)
125 INT2 * lll;
127 lll = (INT2 *)(t->data+2);
128 *lll = htons((INT2)t->length);
138 INT2 * lll;
140 lll = (INT2 *)(t->data+2);
141 *lll = htons((INT2)t->length);
148 INT2 receive_transaction(struct session *s,int socket,struct transaction * t)
150 INT2 * v;
156 v = (INT2 *)t;
163 INT2 type;
165 type = ntohs(*(INT2 *)t);
180 INT2 receive_udp_transaction(struct session *s,int socket,struct transaction * t,struct sockaddr_in *addr)
184 INT2 * v;
197 return (INT2) E_BPA_SOCKET_ERROR;
201 return (INT2) E_BPA_LONG_HB_INTERVAL;
208 return (INT2) E_BPA_SOCKET_ERROR;
224 return (INT2)E_BPA_UNKNOWN_STATUS_SERVER;
231 return (INT2)E_BPA_ILLEGAL_PKT_FORMAT;
242 return (INT2)E_BPA_SHORT_HB_INTERVAL;
267 return (INT2)0xfffd;
278 return (INT2)0xfffd;
286 v = (INT2 *)t;
291 char * locate_parm(struct transaction * t,INT2 parm)
294 INT2 p1;
295 INT2 l;
319 int extract_valueINT2(struct session *s,struct transaction * t,INT2 parm,INT2 *v)
321 INT2 * pp = (INT2 *)locate_parm(t,parm);
332 int extract_valueINT4(struct session *s,struct transaction * t,INT2 parm,INT4 *v)
345 int extract_valuestring(struct session *s,struct transaction * t,INT2 parm,char * v)
350 INT2 l = read_INT2(pp-2);
360 INT2 read_INT2(void *pp)
363 return ntohs(*((INT2*)pp));
366 return (((INT2)(*p))<<8) + ((INT2)(*(p+1)));