- st=safe_malloc(sizeof(*st),"udp_apply(st)");
- st->loc=loc;
- st->cl.description="udp";
- st->cl.type=CL_COMM;
- st->cl.apply=NULL;
- st->cl.interface=&st->ops;
- st->ops.st=st;
- st->ops.request_notify=request_notify;
- st->ops.release_notify=release_notify;
- st->ops.sendmsg=udp_sendmsg;
- st->ops.addr_to_string=addr_to_string;
- st->use_proxy=False;
-
- item=list_elem(args,0);
- if (!item || item->type!=t_dict) {
- cfgfatal(st->loc,"udp","first argument must be a dictionary\n");
- }
- d=item->data.dict;
+ COMM_APPLY(st,&st->uc.cc,udp_,"udp",loc);
+ COMM_APPLY_STANDARD(st,&st->uc.cc,"udp",args);
+ UDP_APPLY_STANDARD(st,&st->uc,"udp");