Sponsored Content
Top Forums Programming How to Write Linux Friendly Async Socket I/O Post 302118904 by ilko_partizan on Friday 25th of May 2007 07:10:54 AM
Old 05-25-2007
The event mechanism is implemented in the Linux, but it isn't portable of all olther Unix basic OS.
http://www.die.net/doc/linux/man/man4/epoll.4.html

The asynchronous mechanism is implemented in most Unix basic OS.
http://www.freebsd.org/cgi/man.cgi?q...SE&format=html

The article "The C10K problem" is usefully for you.
http://kegel.com/c10k.html


Best regards,
Iliyan Varshilov

Last edited by ilko_partizan; 05-25-2007 at 08:17 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

read/write socket error

I have client and server connected. client write and read from csock. server write and read from ssock suppose the server does : .... close(ssock); //send FIN to client othertask(); .... READ ERROR if after the server close() the client does: ... read(csock,...); ...... (2 Replies)
Discussion started by: gio
2 Replies

2. 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

3. IP Networking

Can we write a multiple thread to receive from a single socket file descriptor

Hi Friends, I have written a program which will listener for more than 1000 requests per second from a single socket descriptor and then it will process those requestes. Its taking X amount of time. Now i want to reduce that time. Will I can write multiple threads to receive the... (2 Replies)
Discussion started by: pa.chidhambaram
2 Replies

4. Programming

Help needed linux socket programming in c

Good evening everyone! :) I'm doing a small client / server application for sharing files in C, and I am trying to implement the following: The client of my application sends to the address 255.255.255.255 a message requesting a particular file.In the network there is only one server,... (1 Reply)
Discussion started by: esmeco
1 Replies

5. Programming

Write-Write on a socket

Can anyone tell what happens if each end writes at the same time on the same socket ? - if one of them issues a read() after write() has completed, will it record into the buffer what the other sent ? ex. e1 writes to e2 - - - while - - - e2 writes to e1 (at the same time) e1 read () - what... (1 Reply)
Discussion started by: gendaox
1 Replies

6. Programming

help me about sending file through socket udp with c in linux

hi, i am newbie of socket. i want to ask some question. if i want to send file from client to server, how do i do? and if i want to send file from server to client, how do i do? any pro help me and if possible, you can post code for an example i need it very much thank you for helping me:)... (1 Reply)
Discussion started by: tung1984
1 Replies

7. Programming

write on Non Blocking Socket

How to know whether socket is ready for write. select(maxfds, (fd_set *)NULL, &writefds, NULL, &timeout); By default socket is set for write without checking whether it would block or not? If so how do I know my FD is ready for writing. (3 Replies)
Discussion started by: satish@123
3 Replies

8. IP Networking

Packets sent from Linux TCP socket

Hello, Our software is using a TCP socket (AF_INET, SOCK_STREAM) to communicate with an Ethernet device. When we send a message, the message object writes itself in full onto the socket's stream buffer before the software invokes send() from socket.h. I'm still researching, but have 2... (1 Reply)
Discussion started by: bix_20002000
1 Replies

9. Shell Programming and Scripting

Read and write to tcp socket

Hello all, I have a requirement to read and write to a tcp socket from an HP-UX shell script. I see a /dev/tcp character device on my servers: crw-rw-rw- 1 root root 72 0x00004f Mar 28 18:37 /dev/tcp So I believe this is what I should use. The problem is that all the... (2 Replies)
Discussion started by: lupin..the..3rd
2 Replies

10. Programming

Socket dual client/server Linux

I'm trying to make a "dual/server client" (ipv4,ipv6) with sockets in linux but i don't know how to join both codes. I have a dual client ipv4 and ipv6, but i have problems with the server if you notice the only difference between them it's the AF_INET (pf_inet ipv4, and if_inet6 ipv6) and the port... (3 Replies)
Discussion started by: godna
3 Replies
DACS_PRENV(8)						     DACS Web Services Manual						     DACS_PRENV(8)

NAME
dacs_prenv - CGI program that displays its environment SYNOPSIS
dacs_prenv [-html] DESCRIPTION
This program is part of the DACS suite. It is a stand-alone program that neither accepts the usual DACS command line options (dacsoptions) nor accesses any DACS configuration files. This CGI utility simply prints its command line arguments, all environment variables, information about the system on which it is running, and CGI parameters and their values. It can be a useful tool when debugging web services. Tip This program can be a useful tool for debugging web services. Replace a call to your web service with an identical call to dacs_prenv to see what arguments your web service is being passed and (to some extent) other context. OPTIONS
dacs_prenv recognizes these command line flags: -html Selects HTML output (text/html) instead of the default Content-Type of text/plain, by default, using the style sheet dacs_prenv.css[1]. Web Service Arguments When used as a web service, the following parameters are recognized: FORMAT At present, the only recognized value for this argument is HTML. just_dump_stdin If the value of QUERY_STRING is exactly jump_dump_stdin, then the program will simply copy its standard input to the standard output as text/plain. FILES
dacs_prenv.css[1] DIAGNOSTICS
The program exits 0 if everything was fine, 1 if an error occurred. BUGS
It should be possible to request XML output. SEE ALSO
cgiparse(8)[2], env(1)[3], printenv(1)[4], environ(7)[5] AUTHOR
Distributed Systems Software (www.dss.ca[6]) COPYING
Copyright2003-2012 Distributed Systems Software. See the LICENSE[7] file that accompanies the distribution for licensing information. NOTES
1. dacs_prenv.css http://dacs.dss.ca/man//css/dacs_prenv.css 2. cgiparse(8) http://dacs.dss.ca/man/cgiparse.8.html 3. env(1) http://www.freebsd.org/cgi/man.cgi?query=env&apropos=0&sektion=1&manpath=FreeBSD+9.0-RELEASE&format=html 4. printenv(1) http://www.freebsd.org/cgi/man.cgi?query=printenv&apropos=0&sektion=1&manpath=FreeBSD+9.0-RELEASE&format=html 5. environ(7) http://www.freebsd.org/cgi/man.cgi?query=environ&apropos=0&sektion=7&manpath=FreeBSD+9.0-RELEASE&format=html 6. www.dss.ca http://www.dss.ca 7. LICENSE http://dacs.dss.ca/man/../misc/LICENSE DACS 1.4.27b 10/22/2012 DACS_PRENV(8)
All times are GMT -4. The time now is 09:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy