Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help to run this socket program in C Post 302402030 by spaesani on Monday 8th of March 2010 04:32:53 PM
Old 03-08-2010
post a snippet of those parts of your code
pertaining to and including your call to connect.

anyone who knows about socket programming, it's been a while for me Smilie,
will most likely be able to pick out the error there, if any.
 

10 More Discussions You Might Find Interesting

1. Programming

How can I program socket in unix?

Excuse me . I'm a beginner . In windows , MFC can be used , but how to do in Unix ? And does unix support c++like VC++ ? How can I get developing tools in Unix ? (7 Replies)
Discussion started by: sanjohn
7 Replies

2. UNIX for Dummies Questions & Answers

Getting a program to run

Please help, I have tried to run this program countless times and still nothing. Please tell me what I'm doing wrong. $ cat>test count=1 while do echo "5" read number echo $5 let count=count+ 1 done exit 0 ^C$ ksh test $ ^C $ ksh test $ $ nothing happend (6 Replies)
Discussion started by: ctiamaria
6 Replies

3. Programming

how to run socket programme and file management concurrently

hi i have a server socket programme which is running in HP/UX system and then need to add a function about refreshing memory every miniute because the socket programme is blocked , i have no idea about this what should i do thanks (10 Replies)
Discussion started by: benbenpig
10 Replies

4. Programming

Help Socket program

Hi All, I'm writing a client-server socket program. the client will be an instance of the well-known telnet application. i want to implement a simple authentication between the server and the client. - the client should send this message (after the connection established): my password... (0 Replies)
Discussion started by: mhetfield
0 Replies

5. UNIX for Advanced & Expert Users

Fedora Linux for Socket Program Development

Hi, I am trying to port a networking application to linux, I get error while binding a socket to a port, The port is not used by any application and was verified by using netstat and other tools. I tried a simple socket and bind on a unused port, but even that fails. Is there any document... (0 Replies)
Discussion started by: venkatesh.n
0 Replies

6. Programming

How to Run a Linux Command and Redirect its output to a socket in C

I have a Linux socket server program. I need to run the commands sent by the client and return the output to client. Is there a quicker way? I tried with ptr=popen(command, "r"); and then fgets(buf, size,ptr); write buf to socket fgets hangs for me. Now, I would like to know if I can... (3 Replies)
Discussion started by: rajeshomallur
3 Replies

7. Shell Programming and Scripting

socket program

All, I am looked to develop a socket program from one Solaris server to another Solaris server to send UDP packets from a source UDP port number 2505 on the first server to the source port 2505 on the second server. Is it possible to do? What is the best way to do this? I want to set the... (1 Reply)
Discussion started by: bubba112557
1 Replies

8. Programming

Problem with Socket program..

I wrote a program which will send a message to multiple clients(i.e, broadcasting) that are connected to a server.Once when the client receives a message from the server ,the client should read a file in the server and display it in the client.The client which responds (i.e, client wants all the... (3 Replies)
Discussion started by: vigneshinbox
3 Replies

9. AIX

Sample C program to Send/Recieve a file using Socket

Hi All, I urgently need a Sample C program to Send/Recieve a file using Socket. Thanks Sara (1 Reply)
Discussion started by: saraperu
1 Replies

10. UNIX for Advanced & Expert Users

C socket program on UNIX

Write a C socket program on UNIX where a TCP client sends/reads a time in decimal 24 hours format to the server and the server echoes the seconds, minutes, and hours in the time. Example: Client sends 18.78 hours and the server displays 18 hours, 46 minutes and 48 seconds. (1 Reply)
Discussion started by: adi_always4u143
1 Replies
smd-server(1)						 Sync Mail Dir (smd) documentation					     smd-server(1)

NAME
smd-server - sends diffs and mails to smd-client SYNOPSIS
smd-server [--exclude glob] [-v|--verbose] [-d|--dry-run] [--get-mddiff-cmdline] [--stop-after-diff] [--override-db dbf] [--dump-stdin tgt] endpoint mailboxes DESCRIPTION
smd-server needs to know a name (endpoint) for the client (that must not be used by others) and a list of mailboxes (directories). smd-server first calls mddiff(1), then prints on stdout the generated diff. It then accepts from stdin a small set of commands a client may issue to request a file (or parts of it, like the header). smd-server is in charge of committing the db file used by mddiff(1) in case the client communicates a successful sync. OPTIONS
-v --verbose Increase program verbosity (printed on stderr) -d --dry-run Do not perform any action for real -n --no-delete Do not track deleted files --exclude glob Exclude paths matching glob --override-db dbf Use dbf as the db-file --get-mddiff-cmdline Print the command line used for mddiff and then exist --stop-after-diff Send the actions to the other endpoint and exit. If used in conjunction with --override-db, dbf is removed just before exiting --dump-stdin tgt Dump standard input to tgt and exit NOTES
smd-server is a low level utility. You should use higher level tools like smd-pull(1) and smd-push(1) SEE ALSO
mddiff(1), smd-client(1), smd-pull(1), smd-push(1) AUTHOR
Enrico Tassi <gares@fettunta.org> 11 June 2012 smd-server(1)
All times are GMT -4. The time now is 11:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy