-
as seen on Stack Overflow
- Search for 'Stack Overflow'
We are trying to build an SMTP Server to receive mail notifications from various clients over internet. As each of the communication will be longer and it needs to log everything, doing this Asynchronous way is little challenging as well as by using Socket's Asynchronous methods we are not sure of…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
HOST = same host all the time, accepts multiple connection. I have a dedicated server and I will buy extra IP's.
Socket 1 connects to HOST:PORT, from IP-1
Socket 2 connects to HOST:PORT, from IP-1
Socket 3 connects to HOST:PORT, from IP-1
Socket 4 connects to HOST:PORT, from IP-2
Socket 5 connects…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
HOST = same host all the time, accepts multiple connection. I have a dedicated server and I will buy extra IP's.
Socket 1 connects to HOST:PORT, from IP-1
Socket 2 connects to HOST:PORT, from IP-1
Socket 3 connects to HOST:PORT, from IP-1
Socket 4 connects to HOST:PORT, from IP-2
Socket 5 connects…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm curious to know if, after a WebSocket has been established (after having received the proper handshake from a server that supports them), whether or not the TCP socket used by the "WebSocket connection" is used exclusively by the WebSocket, or if the browser may still make regular HTTP requests…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
My program uses sockets, what Parallel computing APIs could I use that would help me without obligating me to go from sockets to anything else?
When we are on a cluster with a special, non-socket infrastructure system this API would emulate something like sockets but using that infrastructure (so…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'd like to know if there's a way to get the number of seconds since the UNIX epoch in any POSIX compliant shell, without resorting to non-POSIX languages like perl, or using non-POSIX extensions like GNU awk's strftime function.
Here are some solutions I've already ruled out...
date +%s //…
>>> More
-
as seen on Super User
- Search for 'Super User'
Under Ubuntu 8.10, bash shell, the LANG and LC_ALL variables are not set:
user@machine1:~$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
Where…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
posix does not appear when I run php -m cmd, however, I see it from the phpinfo() –enable-posix=shared on Linux with Plesk 9.
Basically, I can't use posix_*() functions as described at
http://www.php.net/manual/en/ref.posix.php
this shows doesn't exists:
if (function_exists(‘posix_getuid’)) {
echo…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In a linux application I'm using pipes to pass information between threads.
The idea behind using pipes is that I can wait for multiple pipes at once using poll(2). That works well in practice, and my threads are sleeping most of the time and only wake up if there is something to do for them.
On…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
Do you know about any good library wrapping posix and linux functions and structures ( eg. sockets or file descriptors ) into C++ classes? For example I'm thinking about a base FileDescriptor class and some inheriting classes ( unix sockets etc ) with methods like write, read or even some syscalls…
>>> More