Sponsored Content
Special Forums IP Networking Link two sockets to eachother Post 302254131 by Eckhardt on Monday 3rd of November 2008 05:52:27 PM
Old 11-03-2008
Question Link two sockets to eachother

Hi, I'm programming a system in C++ which will send messages from a server to an ip-camera (both are connected to the system). What it does now is take the message from the server-socket and puts it in the camera-socket.

The thing is, after that the camera is going to send a video stream which needs to go to the server. Unlike the server-messages, this is a continuous stream, so I can't really take messages out of the camera-socket and put them in the server-socket. What I would really want is to "connect" the camera-socket to the server-socket so that what 'comes out of the camera-socket' goes directly in the server-socket. Is there a nice way to do this? If not, does anyone have an idea how I could handle this?

I'm using TCP sockets and everything is HTTP based btw.

Thanks alot for any help!
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Differences between hard link and soft link

Hi all! I'd like to know the differences between hard links and soft links. I've already read the ln manpage, but i'm not quite sure of what i understood. Does a hard link sort of copy the file to a new name, give it the same inode number and same rights? What exactly should I do to do this:... (3 Replies)
Discussion started by: penguin-friend
3 Replies

2. UNIX for Dummies Questions & Answers

Difference between hard link and soft link in unix

Hi All, Can any one please explain me what is the difference between hard link and soft link in UNIX. Thanks in advance Raja Chokalingam. (2 Replies)
Discussion started by: RAJACHOKALINGAM
2 Replies

3. UNIX for Dummies Questions & Answers

need some info about symbolic link and hard link

hello folks how y'all doin well i have some questions about symbolic link and hard link hope some one answer me i open terminal and join as root and i wrote ln -s blah blah then i wrote ls i see red file called blah blah but didn't understand what is this can some one explain and... (2 Replies)
Discussion started by: detective linux
2 Replies

4. UNIX for Dummies Questions & Answers

Difference between hard link and soft link

Hi Experts, Please help me out to find out difference between a hard link and a soft link. I am new in unix plz help me with some example commands ( for creating such links). Regards S.Kamakshi :) (2 Replies)
Discussion started by: kamakshi s
2 Replies

5. Programming

putting numbers behind eachother

I want to make a program where you have to insert binary numbers like this: do { iBinary = getche(); }while(iBinary == 1 || iBinary == 0); after you get the numbers I want them to be placed behind eachother so you will get: input: 1 1 0 1 output: 1101 (7 Replies)
Discussion started by: metal005
7 Replies

6. Programming

g++ fails to link to static library when compilation and link in single command

Hello All, I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it: I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies

7. UNIX for Dummies Questions & Answers

[Solved] Symbolic link not allowed or link target not accessible

Hi everybody, I read about treads realted to this issue but they did not resovle issue given below. Please help me resolve issue given below I have html file under /srv/www/htdocs/actual_folder ls actual_folder/ test.html and following link works... (0 Replies)
Discussion started by: newbielgn
0 Replies

8. Solaris

/var/adm/messages (interface turned off/restored) and link up & link down message.

Hi All I am facing an issue with our new solaris machine. in /var/adm/messages root@Prod-App1:/var/tmp# root@Prod-App1:/var/tmp# root@Prod-App1:/var/tmp# cat /var/adm//messages Apr 20 03:10:01 Prod-App1 syslogd: line 25: WARNING: loghost could not be resolved Apr 20 08:24:18 Prod-App1... (0 Replies)
Discussion started by: javeedkaleem
0 Replies

9. Solaris

/var/adm/messages (insterface turned off/restored) and link up & link down message.

Hi All I am facing an issue with our new solaris machine. in /var/adm/messages Apr 22 16:43:05 Prod-App1 in.routed: interface net0 to 172.16.101.1 turned off Apr 22 16:43:33 Prod-App1 mac: NOTICE: nxge0 link up, 1000 Mbps, full duplex Apr 22 16:43:34 Prod-App1 mac: NOTICE: nxge0 link... (2 Replies)
Discussion started by: javeedkaleem
2 Replies

10. Solaris

Guest LDOMS on same subnet cant ping eachother

Hi all, New to this forum. I have just been reading through a historical thread about some issues with IPMP. Some tips from "Peasant" where very useful. Please see below "Just couple of more hints regarding VM. For VDS, use one VDS - one guest LDOM, don't put everything in primary-vds.... (9 Replies)
Discussion started by: selectstar
9 Replies
DVCONT(1)						      General Commands Manual							 DVCONT(1)

NAME
dvcont - send control commands to DV cameras SYNOPSIS
dvcont <command1> [ <command2> ... ] DESCRIPTION
dvcont is a command line tool to send control commands via an IEEE1394 link to a device that implements the AV/C specifications by the 1394 Trade Association. Or for the non-techies: dvcont lets you remote control your DV camera via a Firewire cable. The following commands are understood: dev <number> Select device number on chain to use. (dvcont tries to automatically detect the camera. Use the dev command BEFORE any other com- mands for manual control.) play Tell the camera to play. If already playing, it toggles slow-motion. reverse Tell the camera to play in reverse. If already playing, it toggles slow-motion. trickplay < -14 to +14 > Tell the camera to play at various speeds. 0 = forward play, -14 = fastest reverse, -8 = 1X reverse, -1 = slowest reverse, 1 = slowest forward, 8 = 1X forward, 14 = fastest forward. (Not supported by all cameras.) stop Tell the camera to stop playing. rewind Tell the camera to rewind. (Use in stop or play mode.) ff Tell the camera to fast forward. (Use in stop or play mode.) pause Tell the camera to toggle pause play. next Tell the camera to go to the next frame. (Use in pause mode.) nextindex Tell the camera to search for the next scene. (Use in pause or play mode.) prev Tell the camera to go to the previous frame. (Use in pause mode) previndex Tell the camera to search for the previous scene. (Use in pause or play mode) record Tell the camera to record. (Use with caution!) eject Tell the camera to eject the tape. (Not supported by all cameras.) timecode Report the timecode on tape in the format HH:MM:SS:FF (hours, minutes, seconds, intra-second frames). seek <timecode> Tell the camera to go to the timecode, given in format HH:MM:SS:FF as above. status Report the status of the device. pluginfo Report available plugs. verbose Tell the program to tell you debug info. version Tell the program to tell you the program version. help Tell the program to show you a help screen. AUTHORS
dvcont was written by Jason Howard <jason@spectsoft.com> and Dan Dennedy <dan@dennedy.org>. This man page was written with the help of help2man by Daniel Kobras <kobras@debian.org> for the Debian GNU/Linux distribution (but may be used by others). Updated by Dan Dennedy <dan@dennedy.org>. September 2002 DVCONT(1)
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy