

Public Member Functions | |
| ReDPDClass () | |
| TclObject * | create (int argc, const char *const *argv) |
|
|
Definition at line 47 of file red-pd.cc.
00047 : TclClass("Queue/RED/PD") {} |
|
||||||||||||
|
Definition at line 48 of file red-pd.cc.
00048 {
00049 // printf("creating REDPD %d\n", argc);
00050 if (argc==4) {
00051 return (new RedPDQueue("Drop", "Drop"));
00052 }
00053 else {
00054 char args[100];
00055 strcpy(args, argv[4]);
00056 //strtok used for compatibility reasons
00057 char * arg1 = strtok(args," ");
00058 char * arg2 = strtok(NULL," ");
00059 //printf("got arguements :%s: :%s:\n",arg1, arg2);
00060 if (arg2 == NULL) {
00061 printf("calling null arg2\n");
00062 return (new RedPDQueue(arg1, "Drop"));
00063 }
00064 else {
00065 return (new RedPDQueue(arg1, arg2));
00066 }
00067 }
00068
00069 }
|
1.3.3