I am writing a small program, which will use one client to connect to one of two servers, basic idea is that if one server failed, it can pick up another server.
The client socket connect() c...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi,
I have done following:
1)
increased the number of ports with /proc/sys/net/ipv4/ip_local_port_range to 32768 65535
2)
made changes to /etc/sysctl.conf file.
net.ipv4.tcp_mem = 838...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
How does one determine when an error has occurred in a TCP connection, specifically when sending data? send() writes data to a buffer and returns immediately without waiting to see if there are a...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
please send me c++ ftp client code to connect server.
client is on windows machine and server is on linux
...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
what is Edge and Level trigger? how is it different and/ similar to each other?
how and when is Edge trigger/Level Trigger used? is there any performance benefit og one on the other??
Please l...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
can anyone please provide me with sample code to use EPOLLOUT event. i want to know how and when does this event is raised?
thanks
epolluser
...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi All,
I have developed a multi threaded socket server to listen on specific port. It uses pthread library and uses one socket per client connection. That is when a client connection is accep...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
what error/event is raised by the server when client terminats abruptly ?
sequence of operations carrried out are:
1) Server is started. EPOLLIN event is raised as reading from client is going...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi;
I tried look for a simple way of sending a file using sockets, I found one in the old forums but I am not sure why the file when it is sent, the client side some how receive wrong contents, an...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
I have just created my first "network" with a XP -PC linked to a WD MyBookWorld Edition NAS through a Netgear DG834v3 router/modem (ethernet) to the Internet. Things seem to work OK but ...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi all!
I have a problem while im trying to read from a socket here is the description:
sending side: i have to use a (PF_PACKET,SOCK_DGRAM, IPPROTO_UDP) socket
-> i make an own cooked etherne...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
In socket tcp connection after the client is killed .. we expect read/recv in server to return with -1 failure .. and set errno.
but getting return value of recv() as.. 0(read bytes) and er...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
hi, solaris 10, compiler report undefiend symbol sockaddr. i have defined sys/types. and sys/socket.h. which header cover sockaddr in connect( under solaris ? thanx
...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
On rare occations I receive invalid filedescriptor when executing select(...) and recv(...) after a tcp connection has been established (after tcp handshake). How can I go about troubleshooting th...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi,
Has anybody forwarded a local port to a mysql port using libssh?
I have the following problem while doing so.
I am creating a channel and forwarding it to a mysql port (using
chann...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi there.
I am trying to write a simple a multi person chat room using select().
I want the person to connect, enter their name, so each subsequent message from the user appears to all oth...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hello!
Can someone tell mi what will happen if we will set O_ASYNC for socket? How wil it influence on it's behavior? I didn't try it myself.
...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi all,
Requirement is all packets , on g/k is be redirected to 8080 portal port ,
at any Instance this rule excludes the mac specified,by adding iprule to accept packets from specified mac,
...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
If the new iprule match the existing .i would prefer to have one.. rather than having same entry more then once . can i have your suggestion how can the 2nd time same rule be neglected/avoided f...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hey to all.
I'm new here, generaly I'm new to unix network programming and I need some help :)
I have to write a simple client that will send a string to a server, than server should execute...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
i would like your help again.. this time i want to send to the client all the char that are produced in a while loop, in the server:
Code:
char *value;
while (...) {
value =... ;
...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
How can i send an integer from server to client??
i use
Code:
write(newsockfd,&count,sizeof(int));
in server and
Code:
read(sockfd,&count,sizeof(int));
in client.
...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
i tried to connect a TCP server with a client but in every connection , returns me this error... What is wrong?
server.c
Code:
#include <stdio.h>
#include <sys...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
My App sends same data to different destinations(peers).
A list of the peer ip adreess is maintained and data is send in a while loop.
If my understanding is correct, a socket "send&qu...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine
Hi all,
I'm diving into IPv4 multicasting today (fun!) and I've come across what seems to be a design flaw in the IP_MULTICAST_LOOP option.
The scenario: I've got a distributed application where ...
[Tags: No tags defined yet] - Be the first to Tag this threadAdd TagsCancel
*Note: Tags must be comma (,) seperated. For example: boardtracker, forum search, search engine