Help with sockets in C


 
Thread Tools Search this Thread
Top Forums Programming Help with sockets in C
# 29  
Old 04-01-2011
I think I got it now.



---------- Post updated at 08:30 PM ---------- Previous update was at 06:34 PM ----------

i have another issue, then the client is running, and i press ctrl+c, it quits which is fine, but the server also quits, do you can any reasons why that could be happening?

Last edited by omega666; 04-01-2011 at 09:29 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Any example about sockets in C++?

Hi, i am student, think learning about c++, someone has a example the how establish a conection with sockets :b::b: (1 Reply)
Discussion started by: mmartinez
1 Replies

2. Red Hat

Sockets

hai guys, I'm doing a project in which one server communicates with several clients. How can i do it when i have different port numbers???:confused: (0 Replies)
Discussion started by: rajeshb6
0 Replies

3. Programming

Sockets

Hi,i now moved into a different section where i need to use sockets. i am completely nill in sockets. can some body please provide me what are the requirements for a socket. to use sockets in c. thanks (1 Reply)
Discussion started by: MrUser
1 Replies

4. Programming

need help with sockets

anyone and teach me how to save standard output to a file in a client/server socket. I know how to read them to the screen but i'm not quite sure how to save them to a file. my read to screen file code: memset(line, 0x0, LINE_ARRAY_SIZE); while (recv(connectSocket, line, MAX_MSG, 0) >... (1 Reply)
Discussion started by: crunchyuser
1 Replies

5. IP Networking

sockets and firewall

Is it possible to trace the packages and the statuses of client's and/or server's sockets by the UNIX network administrative tools? Two applications interact via sockets. There is no problem if they stay in the same network segment. If their hosts connected through the firewall then they aren't... (4 Replies)
Discussion started by: gogogo
4 Replies

6. Solaris

Sockets in use

Is there a way to see what sockets are in use? The developers here are getting some defunct processes and they would like to get a socket list. This is on a Solaris 8 machine. Thanks! (1 Reply)
Discussion started by: kjbaumann
1 Replies

7. UNIX for Dummies Questions & Answers

sockets

how do i mointor how many sockets are opened from a particular foriegn address? (2 Replies)
Discussion started by: kirpond
2 Replies

8. Programming

sockets

Hai, How cani declare socket and collect the data in a string varialbe. Since i am new to this i am asking this. Can we connect multiple port. Thank you. (6 Replies)
Discussion started by: arunkumar_mca
6 Replies

9. Programming

Sockets!?!?!?!?!?!

I am looking for a way to have a program listen on a port (example: 8000) for communication I will be sending via that port to it(Linux Kernel machine). Once it recieves an appropiate command I need it to run a .bat file in linux. I know what I need to do but I am running into a few problems:... (8 Replies)
Discussion started by: bigB8210
8 Replies

10. Programming

sockets...

Hi ! I had a verry simple question to ask... In unix when we create pipes.. the unnamed pipes that is... is there any way to access those pipes outside the code ? Another thing.. do sockets have an entry in the inode table ? TIA, Devyani. (1 Reply)
Discussion started by: devy8
1 Replies
Login or Register to Ask a Question
fiu-ctrl(1)						      General Commands Manual						       fiu-ctrl(1)

NAME
fiu-ctrl - a script to remote control programs using libfiu SYNOPSIS
fiu-ctrl [options] PID [PID ...] DESCRIPTION
fiu-ctrl is a script to enable/disable failure points in running programs that are using libfiu(3). Programs are usually launched using fiu-run(1), which enables libfiu's remote control capabilities without the need to modify the program's code. For additional documentation, go to the project's website at http://blitiri.com.ar/p/libfiu. OPTIONS
-c command Run the given libfiu remote control command before executing the program (see below for reference). -f ctrlpath Set the default prefix for remote control over named pipes. Defaults to "$TMPDIR/fiu-ctrl", or "/tmp/fiu-ctrl" if "$TMPDIR" is not set, which is the usually correct for programs launched using fiu-run(1). Remote control commands are of the form "command param1=value1,param2=value2". Valid commands are: 'enable name=NAME' Enables the NAME failure point unconditionally. 'enable_random name=NAME,probability=P' Enables the NAME failure point with a probability of P. 'disable name=NAME' Disables the NAME failure point. All of the enable* commands can also optionally take failnum and failinfo parameters, analogous to the ones taken by the C functions. EXAMPLES
The following command will tell the process running with PID 12345 to enable the failure point posix/io/read with a 25% of probability to fail, and the failure point libc/mm/malloc with a 5% of probability to fail: fiu-ctrl -c 'enable_random name=posix/io/*,probability=0.25' -c 'enable_random name=libc/mm/*,probability=0.05' 12345 And the following will tell the same process to disable the previously enabled failure point posix/io/read: fiu-ctrl -c 'disable name=posix/io/read' 12345 SEE ALSO
libfiu(3), fiu-run(1). BUGS
If you want to report bugs, or have any questions or comments, just let me know at albertito@blitiri.com.ar. For more information about libfiu, you can go to http://blitiri.com.ar/p/libfiu. 16/Jun/2009 fiu-ctrl(1)