Research Article

Self-Awareness in Computer Networks

Algorithm 1

Dynamic protocol stack architecture API example.
struct  bind_msg
  char name[FBNAMSIZE];
  char app[FBNAMSIZE];
  char props[MAX_PROPS][10];
  int flags;
;
int  main(void)
char buff[51 2];
 memset(buff, 0, sizeof(buff));
 sock = socket(PF_DPS, SOCK_RAW, 0);
 bmsg = (struct bind_msg *) buff;
 strcpy(bmsg->app,  “chat”);
 bmsg->props[0]  =  “RELIABILITY”;
 bmsg->props[1]  =  “PRIVACY”;
 bmsg->flags = TYPE_CLIENT;
 ret = bind_config(bmsg);
 ret = sendto(sock,data,len,0,NULL,0);
 ret = close(sock);
return 0;