--- /dev/null
+/*
+ * dmsd - digital media soft decrypt
+ *
+ * author: hackbard@hackdaworld.dyndns.org
+ *
+ */
+
+#include <stdio.h>
+#include <string.h>
+
+#include "dmsd.h"
+
+int main(int argc,char *argv[]) {
+
+ /* file descriptors */
+ int v_fd,a_fd;
+ /* pid's */
+ int vpid,apid;
+ /* ip */
+ sockaddr_in dbox_addr;
+
+ if(argc!=4) {
+ printf("usage: %s <video pid> <audio pid> <dbox ip address>\n",argv[1]);
+ return -1;
+ }
+
+ sscanf(argv[2],"%x",vpid);
+ sscanf(argv[3],"%x",apid);
+ printf("using video pid %x & audio pid %x ...\n",vpid,apid);
+
+ if((v_fd=socket(AF_INET,SOCK_STREAM,0)) == -1) {
+ printf("can't open socket for video.\n");
+ return -1;
+ }
+ if((a_fd=socket(AF_INET,SOCK_STREAM,0)) == -1) {
+ printf("can't open socket for audio.\n");
+ return -1;
+ }
+
+ memset(&dbox_addr,0,sizeof(dbox_addr));
+ dbox_addr.sin_family=AF_INET;
+ target_addr.sin_port=htons(DBOX2_TS_PORT));
+ target_addr.sin_addr.s_addr=inet_addr(argv[4]);
+
+ if(connect(v_fd,(struct sockaddr *)&dbox_addr,sizeof(dbox_addr))==-1) {
+
+}
+