Networking :: Reusing Socket Without Closing It?

Oct 22, 2010

I want to reuse a socket without closing the same. I am running a client and it connects to a server. The server shuts down in between and comes up. So after this I want to reconnect to server without closing my socket and creating another one. Is there any way?

View 3 Replies


ADVERTISEMENT

Networking :: Configuring Socket Timer To Release Socket Once The Connection Is Terminated?

Jun 4, 2010

I want to configure socket timer to release socket(port) once the connection is terminated. Do we have something in Linux OS to configure this delay to release socket?.

Any command, link or man-page anything will be helpful.

I browsed a lot but unable to find it.

View 1 Replies View Related

Networking :: /usr/sbin/in.telnetd: Getpeername: Socket Operation On Non-socket?

May 5, 2009

I had installed Fedora 10

Below is the output of uname -a

Linux 2.6.27.5-117.fc10.i686.PAE #1 SMP Tue Nov 18 12:08:10 EST 2008 i686 i686 i386 GNU/Linux

I need to enable telnet service on it, then found xinetd and telnet-server not installed,

Then I had installed below
First I had installed Xinetd: xinetd-2.3.14-21.fc10.i386.rpm
then I had installed telnet-server: xinetd-2.3.14-21.fc10.i386.rpm

After installation I executed below commands

Service xinetd start
Chkconfig xinetd on
Chkconfig telnet on
Service iptables stop
Chkconfig iptables off
Iptables �F

After I had tried telnet localhost ----IT FAILED

when I run telnet server manually by issuing the below command
/usr/sbin/in.telnetd, I get below error
[COLOR="Red"]/usr/sbin/in.telnetd: getpeername: Socket operation on non-socket[/COLOR]

I have other system running same OS, I had followed the same steps discussed above to enable telnet, It works fine on it.

View 1 Replies View Related

Networking :: Multiple FTP Upload Socket Error "Connection Reset By Peer: Socket Write"

Jan 31, 2010

I am pragmatically trying to upload a list of files from my client machine to a proFTPd server I have running on Ubuntu. Every time I get several (around fifty) files into the transfer, I get the following error: Quote: Connection reset by peer: socket write error

I am able to remotely upload 25,000 small files of ~ 1K in size, but when I go to upload hundreds of 2-4 Mb files, I get a socket write error. Am I using up all available sockets before they can be released? If so, how do I release the sockets? If not, what does this error mean and why am I getting it?

View 1 Replies View Related

Hardware :: WD MyBook World Edition II 4TB - Reusing Drives?

May 24, 2011

This is a problem I've been working at on and off for quite a long time now. I acquired one of these devices from a thrift store and eventually decided that the drives would serve better mounted in my desktop PC, rather than hooked up to a router where large-scale backups are made unbearably slow.

What I quickly discovered is that these drives don't want to appear to any OS. The Windows installer doesn't see them. My Linux distro (at the time) didn't see them. A GParted live CD didn't see them. DBAN didn't see them. The BIOS, however, saw them, so I banged my head against a few possible solutions.

Martin Hinner's blog seemed promising but didn't have the information I wanted. This blog only had disassembly guides/photos, and no info (that I was able to find) on actually getting the drives to work in a Linux system. I'd love to have an extra 4TB of storage in my desktop.

View 4 Replies View Related

General :: Reusing Find Command Results In Mplayer Arguments?

Jan 22, 2010

I wanted to supply mplayer with the output of find command as arguments. The error returned showed spliced names of files whenever spaces occurred. I have subdirectories in my /home/my_user_name/Music/ directory, and in them multiple *.oga music files. The actual command that I issued was

Code:
mplayer $(find /home/my_user_name/Music/ -name "*.oga")

mplayer started but then was looking for broken file names. I am thinking quoting has to do with it to preserve the filename as one string but different attempts were met with inroads:

Code:
mplayer `find /home/my_user_name/Music/ -name "*.oga"`
gave me the same result and
Code:
mplayer `"find /home/my_user_name/Music/ -name *.oga"`

complained about wrong mplayer syntax.

View 1 Replies View Related

Server :: Socket Connections / Socket And TCP Connection For Connecting To An External System?

Dec 7, 2010

Anyone knows the difference between a socket and TCP connection for connecting to an external system?

View 1 Replies View Related

General :: Socket Programming - Feed Some Words One By One To The Socket

Jul 6, 2010

i'm writing a simple program of client socket program. Here below is the code sample which i'm writing...

Code:
//tcp_client.c
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include<string.h>
#include<stdlib.h>
[Code].....

the above code works fine.if we copmile and run ./a.exe 192.xx.xx.xxx 1111 and press enter it works fine..everytime it asks "Please enter the message: " and if give that will be displayed in server. but my problem is i dont want to print everytime "Please enter the message: " i just want to feed some words one by one to the socket.

View 4 Replies View Related

Programming :: Setsockopt : Socket Operation On Non-socket Getting Error?

Mar 30, 2009

im getting that error in my code for some reason. I compiled my code, and when i try to run this server it throws me an error on my call to setsocketopt(). The only way it can reach that part of my loop is if it succeeds when it calls sock() so I dont understand why the error says its an operation on a non-socket. Im just trying to set up a server to pass messages from a client to it a viceversa. Here is the code:

Code:
int main()
{
int socket_fd, new_socket_fd, k;
struct addrinfo hints, *server_info, *p;
struct sockaddr_storage peer_address;
code....

View 7 Replies View Related

General :: Socket Error / Socket 31: 0x36?

Sep 15, 2009

We are seeing recv err on socket 31: 0x36. What could be meaning of the error?.

View 1 Replies View Related

Ubuntu Networking :: Closing A Reverse SSH Tunnel?

Jan 31, 2010

so i start it with ssh -f -R 4096:localhost:22 me@server.com and it comes up and someone can log in at the remote end. how do i close the tunnel from the initiating end ? netstat doesnt seem to identify my end of the tunnel , unless im looking for the wrong thing!

View 1 Replies View Related

Networking :: Closing Inactive Alive Ssh Connections

Oct 25, 2010

I had this problem today while I was logged on my server many a times there was power interruption and my connection would break.Each time a new connection was formed I could see the old ones still active is there a way I could close those connections which are still open when I had logged in.I tried restarting ssh daemon but that did not helped.I use Ubuntu 10.04

View 2 Replies View Related

Ubuntu Networking :: Remote Desktop Connection Closing After A While?

Jul 7, 2010

Does anyone know what could be causing a Remote Desktop connection to a 10.04 box to be closing after some period of time? I have three systems all running 10.04 with Remote Desktop enabled. I'm using UltraVNC on Windows 7 to connect to them. If I open a connection and leave it open for a long time (like overnight, for example), when I come back in the morning, I still see the VNC window but as soon as I click on it, it closes. I can immediately open a new connection to the box but it now shows two active connections. At first I was thinking maybe there's an idle timeout value but given that Ubuntu still seems to think that the original connection is active, maybe the problem isn't on the Ubuntu side but on the UltraVNC side?

View 1 Replies View Related

Networking :: TCP And UDP Socket On Same Port ?

Nov 20, 2009

Can we open TCP and UDP socket on same port number?

View 1 Replies View Related

Ubuntu Networking :: Wireless Connection Lost After Closing Laptop After 9.10 Upgrade

Jan 16, 2010

I have an odd problem in that my wireless connection is okay until I close the laptop. When I open it back up, I'm unable to reconnect. This problem first occurred after upgrading to 9.10. I can reconnect after restarting. I tried several things before breaking down and reinstalling 9.04. After installing 9.04, everything works great. Any suggestions on what is going on before I try upgrading to 9.10 again? I have a Dell D600.

View 8 Replies View Related

Networking :: How To Avoid Loopbacking For UDP Socket

Aug 26, 2010

I am facing some problem with loopback on UDP sockets. is there anyway by with we could avoid loopbacking of a UDP datagram destined to same IP address, and instead force it to go all the way till NIC and then come back to the socket.

The problem is, we have some piece of code written at driver level, and we want each and every packet to hit that code on its TX and RX path. But if src and dest IPs are same, packet loops back from the IP stack itself, without hitting the driver code.

Can we modify the characteristics of a UDP socket, such that each and every packet has to go through NIC interface, thus avoiding loop backing when the src and dest IPs are same?

View 1 Replies View Related

Networking :: Create The IPV6 Socket

Mar 14, 2010

I am trying to create the IPV6 socket and was wondering if anybody has any code strip which I can reuse ?

View 1 Replies View Related

Networking :: Send Array Over Socket

Nov 20, 2008

how can i send an array of string to the client from the server side?

View 2 Replies View Related

Programming :: Socket Programming - Detect Whether A Client Socket Is Closed / Active?

Mar 8, 2011

iam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?

client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....

View 3 Replies View Related

Ubuntu Networking :: Windows Socket Connection ?

Mar 17, 2010

I am trying to connect with Winsock Windows sockets from a PC running Windows XP with a utility program that enables a dialogue over sockets. I have the listener running on Ubuntu on Port 6330. I can telnet to the listener and interact from both the Ubuntu desktop and the XP PC. But my utility program using Winsock is unable to connect. I have no firewalls impeding this. Maybe there is a better vehicle than the Windows Winsock.dll? I dont need network file access, just TCP ports/.sockets.

View 1 Replies View Related

Networking :: Enable The Option Of Keep-alives On A TCP Socket?

Apr 18, 2010

Have a question regarding the implementation of TCP keep alives.

If I enable the option of keep-alives on a TCP socket, is there any way that my application can get the response to the keep-alive back from the kernel. Basically, I have a 'select' blocking on a socket on which I have enabled keep-alives. I need to know if select would unblock if a response to a keep-alive sent by the kernel is received on the socket.

View 3 Replies View Related

Networking :: Connect To A Remote Machine Using Tcp Socket?

Mar 2, 2010

#server.pl
use IO::Socket;
$| = 1;
$socket = new IO::Socket::INET (
LocalHost => '10.100.207.13',
LocalPort => '5000',
code....

it displays the message "couldn't connect to the server". How can i connect to the remote machine using tcp socket?

View 3 Replies View Related

Networking :: Can't Bind Send Socket: Address Already In Use

Feb 23, 2009

I am currently trying to get a B.A.T.M.A.N mesh network up and running. the thing uses UDP port 4305 for broadcasting to nearby nodes and it seems this port is closed or used by something else.

now i have tried to open this port with commands like

Code:

iptables -A INPUT -p udp --dport 4305 -j ACCEPT
iptables -A OUTPUT -p udp --dport 4305 -j ACCEPT

it still gives me the same error saying the socket cannot connect.any way for me to scan that udp port, see what is blocking it and open the thing up ?

View 4 Replies View Related

Networking :: Mysql Cannot Connect Socket But Fine Through TCP/IP?

Jul 29, 2010

I'm using mysql server through tcp/ip with no problem. But I don't know since when I'm not able to connect through socket. There are lots of topics but my bad I couldn't find one works for me.

OS: Ubuntu 9.04
mysql 5.0.75-0ubuntu10.5

my.cnf

Quote:

[mysqld]
user = mysql
socket = /var/run/mysqld/mysqld.sock
skip-name-resolve
safe-show-database
code....

/var/run/mysqld/mysqld.sock socket exists and has chmod 777
Error:

Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'localhost' (2)

View 3 Replies View Related

Networking :: Raw SCTP Socket Cannot Bind With Port?

Jul 26, 2010

If I open a raw SCTP socket, am I able to bind to a specific port? (I only want to see SCTP packets from a particular IP address AND port.) Or, any raw SCTP socket, regardless of port binding , will get all SCTP packets received by the OS from that IP address? The port doesn't matter and is ignored.

View 1 Replies View Related

Networking :: Socket Timeout Happening Despite Data Being Available?

Dec 29, 2010

I am using select to read the data from socket. on a load of 25 req per second, for some req i am getting the timeout in select (returning zero), but i am able to see the data on TCP using wireshark. kindly suggest what could be the possible reasons.

View 5 Replies View Related

Networking :: Unable To Close SCTP Socket

Jun 16, 2011

I create SCTP socket with port number 60011. The SCTP socket descriptor value is 18.
When I try to close the socket with the socket descriptor, sometimes it is not closed without errno.

View 2 Replies View Related

Networking :: Unable To Open Socket (Not Available Error)

Aug 12, 2010

I've been tasked with transferring a Python web server from a Debian box to a Fedora server for work. (I think) I've been able to transfer all required files but I'm unable to run the web server because whenever I make the HTTPServer call in the python file I get an error "Cannot assign Requested Address".

I've basically traced the issue back to the server being unable to open a socket on the requested port (8085 in this case). I've checked netstat and there are no processes running on that port (or any other one I've tried for that matter) so wondering if there's a system configuration I need to do to allow programs to bind to sockets. Is there a deny configuration set up somewhere I need to modify? Does this even make sense?

View 1 Replies View Related

CentOS 5 Networking :: Max Socket Connexion On A Server?

Jan 8, 2009

I used this Tutorial, to create a php chat daemon. But now I'm getting to the point where i've reach the max socket connexion on my centOs box... I have to much users. Which is 120. when there's more then that number of users in the chat .. things start to get messy. I have tried to change the SOMAXCONN kernel variable without success. I'm sure there is a solution to boost the number of user my chat can handle... (My server is dedicated to the chat).

View 2 Replies View Related

Fedora Networking :: Java Socket Listener Not Working?

Sep 26, 2010

I have forwarded both port 22 and 9000 on my router. I can connect on 22 and remotely login into the machine. The problem when I start my java listener program which is listening on 9000 it cant not establish any connection. I have even add this into the iptables too -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT. I have disabled the SELINUX too. What else must I do to make it work any suggestion please?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved